/* Digital Implant Association - shared stylesheet.
   Plain CSS, no build step. Mobile first. */

/* ---------- tokens ---------- */
:root {
  --navy: #0b2233;
  --navy-deep: #071823;
  --navy-soft: #14364c;
  --ink: #16232e;
  --ink-muted: #4a5a66;
  --paper: #f7f5f1;
  --paper-2: #ede9e2;
  --line: #d9d3c9;
  --line-dark: #2a4a60;
  --accent: #0f6f68;
  --accent-light: #5fd3c9;
  --white: #ffffff;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1080px;
  --radius: 4px;
  --pad-section: 4rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms; transition-duration: 0.01ms; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.15rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 0.5rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--accent-light);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 720px; }

.section { padding: var(--pad-section) 0; border-top: 1px solid var(--line); }
.section--navy {
  background: var(--navy);
  color: var(--paper);
  border-top: 1px solid var(--navy);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--accent-light); }
.section--tint { background: var(--paper-2); }
.section--flush { border-top: 0; }

@media (min-width: 48rem) {
  :root { --pad-section: 5.5rem; }
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.section--navy .eyebrow { color: var(--accent-light); }

.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: 60ch; }
.section--navy .lede { color: #b7c6d1; }
.small { font-size: 0.875rem; }
.muted { color: var(--ink-muted); }
.section--navy .muted { color: #b7c6d1; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 0.85rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand span { color: var(--accent-light); }
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; }
.nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: #0c5a54; border-color: #0c5a54; }
.section--navy .btn-primary { background: var(--accent-light); color: var(--navy-deep); border-color: var(--accent-light); }
.section--navy .btn-primary:hover { background: #8ce3db; border-color: #8ce3db; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(15, 111, 104, 0.08); }
.section--navy .btn-secondary { color: var(--accent-light); border-color: var(--accent-light); }
.section--navy .btn-secondary:hover { background: rgba(95, 211, 201, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.btn-note { font-size: 0.85rem; margin-top: 0.85rem; }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.2rem; }
@media (min-width: 62rem) {
  .hero { padding: 5.5rem 0 4.5rem; }
  .hero .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
}

/* ---------- media placeholders (no stock images shipped) ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  min-height: 200px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy-deep) 55%, #0f4d54 100%);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 25% 20%, rgba(95, 211, 201, 0.22), transparent 70%),
    radial-gradient(50% 50% at 85% 80%, rgba(255, 255, 255, 0.08), transparent 70%);
}

.ph--wide { aspect-ratio: 16 / 9; }
.ph--portrait { aspect-ratio: 3 / 4; max-width: 320px; }

/* ---------- proof strip ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}
@media (min-width: 48rem) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.5rem;
}
.proof-label { font-size: 0.95rem; color: #b7c6d1; margin: 0; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-muted); }
.card .card-cta { margin-top: auto; padding-top: 0.5rem; }
.section--navy .card {
  background: var(--navy-soft);
  border-color: var(--line-dark);
  color: var(--paper);
}
.section--navy .card p { color: #b7c6d1; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  align-self: flex-start;
}
.section--navy .tag { color: var(--accent-light); border-color: var(--accent-light); }

/* ---------- numbered pillars / steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { border-top: 2px solid var(--accent); padding-top: 1rem; }
.section--navy .steps li { border-top-color: var(--accent-light); }
.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}
.section--navy .step-num { color: var(--accent-light); }

/* ---------- split / two column ---------- */
.split { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; } }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}
.section--navy .panel { background: var(--navy-soft); border-color: var(--line-dark); }
.panel h3 { margin-top: 0; }

/* ---------- lists ---------- */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.section--navy .list-plain li { border-bottom-color: var(--line-dark); }
.list-mark { list-style: none; padding: 0; margin: 0; }
.list-mark li { position: relative; padding: 0.4rem 0 0.4rem 1.6rem; }
.list-mark li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.section--navy .list-mark li::before { border-color: var(--accent-light); }
.list-mark--no li::before { border-color: var(--ink-muted); border-radius: 0; }

/* ---------- timeline (cohort day) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 1.5rem 1.5rem;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--accent);
  border-radius: 50%;
}
.section--navy .timeline li { border-left-color: var(--line-dark); }
.section--navy .timeline li::before { background: var(--accent-light); }
.timeline h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 0.35rem; }

/* ---------- price ---------- */
.price-box {
  border: 2px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--navy-soft);
}
.price-figure {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1;
  color: var(--white);
  display: block;
}
.price-rows { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.price-rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.price-rows li:last-child { border-bottom: 0; }
.price-rows .price-key { font-weight: 600; color: var(--white); }
.seats-line {
  font-size: 0.95rem;
  margin-top: 1.25rem;
  color: #b7c6d1;
}
#seats-reserved { color: var(--accent-light); font-weight: 600; }

/* ---------- faq accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 0 1.25rem; color: var(--ink-muted); max-width: 68ch; }

/* ---------- forms and quiz ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field .hint { font-size: 0.85rem; color: var(--ink-muted); margin: 0.4rem 0 0; }

.quiz-q {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
  background: var(--white);
}
.quiz-q legend {
  font-weight: 600;
  padding: 0 0.4rem;
  font-size: 1.02rem;
}
.quiz-q .q-num { color: var(--accent); font-family: var(--serif); margin-right: 0.4rem; }
.opt { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.4rem 0; }
.opt input[type="radio"] { margin-top: 0.35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.opt label { cursor: pointer; }

.result {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
  margin-top: 2rem;
}
.result[hidden] { display: none; }
.result h2 { margin-top: 0; }
.form-error { color: #8c2f22; font-weight: 600; margin-top: 1rem; }
.form-error[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b7c6d1;
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
}
.site-footer h2 { font-size: 1.05rem; color: var(--white); font-family: var(--sans); font-weight: 600; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer a { color: var(--accent-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 0.25rem 0; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  max-width: 80ch;
}
.footer-legal p { margin-bottom: 0.6rem; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
