/* WristProtect — shared styles
   Mobile-first, system fonts only, zero external dependencies. */

:root {
  --bg: #f6fbfb;
  --surface: #ffffff;
  --ink: #1e2b30;
  --muted: #5b6f75;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #e0f2f0;
  --blue: #2563eb;
  --blue-soft: #e8f0fe;
  --line: #dbe7e6;
  --accent: #f59e0b;
  --radius: 12px;
  --maxw: 44rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto;
  background: var(--teal-dark); color: #fff; padding: .5rem 1rem;
  border-radius: 8px; z-index: 100;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.25rem;
  max-width: 64rem; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; font-weight: 700; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-name { font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand-tag { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.site-nav a { color: var(--teal-dark); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; }

/* Layout */
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
main .wrap { max-width: var(--maxw); }
main { padding: 1.5rem 0 3rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--teal-soft) 0%, var(--blue-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.hero h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 .75rem; }
.hero p.lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin: 0 auto 1.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 700; padding: .75rem 1.5rem;
  border-radius: 999px; border: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); }
.btn-outline {
  background: #fff; color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* Cards */
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card h3 a { color: var(--teal-dark); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 .75rem; color: var(--muted); font-size: .95rem; }
.card .card-link { font-weight: 700; color: var(--teal); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Article typography */
article h1 { font-size: 1.8rem; line-height: 1.3; margin: 0 0 .5rem; }
article h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; color: var(--teal-dark); }
article h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
article p, article li { font-size: 1.02rem; }
article ul, article ol { padding-left: 1.4rem; }
article li { margin-bottom: .45rem; }
.subtitle { color: var(--muted); font-size: 1.05rem; margin-top: 0; }

/* Disclaimer boxes */
.disclaimer {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: .92rem; color: #5c4a12;
}
.disclaimer strong { display: block; margin-bottom: .25rem; color: #7c5f0c; }

/* Ad slot */
.ad-slot {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  padding: 1.75rem 1rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Gear box */
.gear-box {
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
}
.gear-box h3 { margin-top: 0; }
.gear-box ul { margin: .5rem 0 .75rem; padding-left: 1.3rem; }

/* Stretch steps */
.stretch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.stretch h3 { margin: 0 0 .5rem; color: var(--teal-dark); }
.stretch ol { margin: .5rem 0 .75rem; }
.stretch .hold {
  display: inline-block;
  background: var(--blue-soft); color: var(--teal-dark);
  border-radius: 999px; padding: .15rem .8rem;
  font-size: .85rem; font-weight: 700; margin-bottom: .5rem;
}
.safety-note {
  font-size: .9rem; color: #7c5f0c; background: #fffbeb;
  border-radius: 8px; padding: .6rem .8rem; margin: .75rem 0 0;
}

/* Checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .9rem; margin-bottom: .5rem;
}
.checklist li::before { content: "— "; color: var(--teal); font-weight: 700; }

/* Brace type sections */
.brace-type {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0;
}
.brace-type h3 { margin: 0 0 .4rem; color: var(--teal-dark); }
.look-for {
  background: var(--blue-soft); border-radius: 8px;
  padding: .75rem 1rem; margin: 1rem 0;
  font-size: .95rem;
}
.look-for strong { display: block; margin-bottom: .25rem; }

/* Table of contents */
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc a { color: var(--teal-dark); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  color: var(--muted); font-size: .9rem;
}
.site-footer .wrap { max-width: 64rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { font-size: .85rem; line-height: 1.6; }

/* Forms */
.contact-form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  article h1 { font-size: 2.1rem; }
}

/* FAQ */
.faq { margin: 2rem 0; }
.faq h2 { margin-bottom: .75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: .6rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--teal-dark); }
.faq details p { margin: .5rem 0 0; font-size: .98rem; }

/* ---------- Course signup ---------- */
.hidden { display: none !important; }
.course-cta {
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.course-cta h2 { margin-top: 0; }
.course-cta p { max-width: 34rem; margin: 0 auto 1.25rem; }
.course-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.course-form input {
  padding: 0.7rem 1rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 999px;
  flex: 1 1 160px; max-width: 240px;
}
.course-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
