:root {
  --ink: #132e2b;
  --muted: #5f706d;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --teal: #0d7169;
  --teal-dark: #07544e;
  --teal-pale: #dceee9;
  --coral: #e87555;
  --line: #cbd8d4;
  --danger: #9f3428;
  --shadow: 0 18px 60px rgba(19, 46, 43, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header, .site-footer, main > section { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal); color: white; font-size: .75rem; letter-spacing: .08em; }
.text-link, .back-link { font-weight: 700; text-underline-offset: .2em; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.7rem); max-width: 11ch; margin-bottom: 1.4rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.eyebrow { color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lede { max-width: 60ch; color: #38514d; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.microcopy, .form-help, .updated, .disclaimer { color: var(--muted); font-size: .9rem; }

.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: calc(100vh - 78px); padding: 4rem 0 6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.2rem; }
.hero-visual { margin: 0; position: relative; }
.hero-visual img { border-radius: 48% 48% 18% 18% / 28% 28% 12% 12%; box-shadow: var(--shadow); }
.hero-visual figcaption { max-width: 30rem; margin: 1rem auto 0; color: var(--muted); text-align: center; font-size: .85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid var(--teal); border-radius: 999px; background: var(--teal); color: white; cursor: pointer; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { background: transparent; color: var(--teal-dark); }
.button.full { width: 100%; margin-top: .75rem; }

.statement { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; padding: 7rem 0; border-top: 1px solid var(--line); }
.statement > p:last-child { font-size: 1.3rem; max-width: 48rem; }
.workflow-section { padding: 7rem 0; }
.section-heading { max-width: 48rem; margin-bottom: 3rem; }
.workflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.workflow-card { position: relative; min-height: 260px; padding: 2rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--white); }
.workflow-card h3 { margin-top: 3.5rem; }
.accent-card { background: var(--teal); color: white; border-color: var(--teal); }
.accent-card .step-number { color: #b9e2d9; }
.step-number { color: var(--teal); font-weight: 800; }
.step-icon { position: absolute; right: 1.5rem; top: 1.3rem; font-size: 2rem; }
.connector { display: grid; place-items: center; color: var(--coral); font-size: 2rem; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.outcomes div { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 1rem; background: #ebe7dc; }
.outcomes span { color: var(--coral); font-size: 1.5rem; }
.scan-result { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; border-radius: 1.5rem; background: var(--ink); color: white; }
.scan-result h3 { margin-bottom: 0; }
.scan-result .eyebrow { color: #8ed4c9; }
.scan-pulse { flex: 0 0 auto; display: grid; place-items: center; width: 4rem; height: 4rem; border: 1px solid #8ed4c9; border-radius: 50%; color: #8ed4c9; font-size: 2rem; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 7rem 0; border-top: 1px solid var(--line); }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 1.15rem 0 1.15rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.prototype-note { margin-bottom: 7rem; padding: clamp(2rem, 5vw, 5rem); border-radius: 2rem; background: var(--teal-pale); }
.prototype-note p:last-child { max-width: 52rem; font-size: 1.12rem; }

.form-shell, .bracelet-shell { width: min(760px, calc(100% - 2rem)); margin: 4rem auto 7rem; padding: clamp(1.3rem, 4vw, 3rem); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.form-shell.compact { min-height: 420px; }
.form-shell h1, .bracelet-shell h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.form-shell h2 { margin-top: 3rem; font-size: 1.7rem; }
form > label { display: grid; gap: .45rem; margin: 1rem 0; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #9aaca8; border-radius: .6rem; background: white; color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #f1a185; outline-offset: 2px; }
.privacy-warning { padding: 1.2rem; margin: 1.5rem 0; border-left: 5px solid var(--coral); background: #fff0e8; }
.privacy-warning p { margin: .5rem 0 0; }
.contact-card { margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; }
.contact-card { position: relative; }
.remove-contact { position: absolute; top: .8rem; right: .8rem; border: 0; background: transparent; color: var(--coral); cursor: pointer; font-weight: 800; text-decoration: underline; }
.contact-card legend { padding: 0 .5rem; font-weight: 800; }
.contact-card legend span { color: var(--muted); font-size: .85rem; font-weight: 500; }
.alert { margin-bottom: 1rem; padding: 1rem; border-radius: .8rem; }
.alert-error { background: #fce5df; color: #7b261d; }
.alert-success { background: var(--teal-pale); color: var(--teal-dark); }

.state-card { min-height: 340px; }
.status-dot { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; background: var(--teal); }
.pulse { animation: pulse 1.25s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
.status-badge, .contact-category { display: inline-block; padding: .3rem .65rem; border-radius: 999px; background: var(--teal-pale); color: var(--teal-dark); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-badge.muted { background: #e7e6e1; color: var(--muted); }
.emergency-callout { padding: .85rem 1rem; border-radius: .75rem; background: #fff0e8; }
.contact-list { display: grid; gap: .85rem; }
.public-contact { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; }
.public-contact h2 { margin: .65rem 0 1rem; font-size: 1.65rem; }
.call-button { display: flex; justify-content: center; min-height: 50px; align-items: center; border-radius: .7rem; background: var(--teal); color: white; text-decoration: none; font-weight: 800; }
.contact-actions { display: grid; gap: .65rem; }
.email-button { overflow-wrap: anywhere; background: var(--teal-dark); }
.text-button { border: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.disclaimer { margin-top: 1.5rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 800px) {
  .hero, .statement, .principles { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-visual { grid-row: 1; }
  .workflow { grid-template-columns: 1fr; }
  .connector { transform: rotate(90deg); height: 1rem; }
  .outcomes { grid-template-columns: 1fr; }
  .statement, .principles { gap: 1rem; padding: 5rem 0; }
}

@media (max-width: 520px) {
  .site-header .text-link { display: none; }
  .site-footer { flex-direction: column; gap: 0; }
  .hero-visual img { border-radius: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
