:root {
  --primary: #0f6b66;
  --primary-dark: #0b4f4b;
  --foreground: #0b0f10;
  --background: #fafaf9;
  --card: #ffffff;
  --border: #e2e2df;
  --muted: #5c645f;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Language banner — hidden by default; JS removes [hidden] to reveal it.
   Explicit display:none guards against the class rule outranking the
   [hidden] UA style once we also set display on the class. */
.lang-banner {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.lang-banner:not([hidden]) {
  display: flex;
}

.lang-banner__link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.lang-banner__dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header__logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher__item {
  font-size: 0.875rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--foreground);
}

a.lang-switcher__item:hover {
  background: var(--background);
}

.lang-switcher__item--active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 3.5rem 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero__eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}

.hero__heading {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__body {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.hero__how-it-works-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.hero__how-it-works-link:hover {
  text-decoration: underline;
}

.hero__form-heading {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.waitlist-form__input {
  flex: 1 1 220px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.waitlist-form__submit {
  padding: 0.7rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.waitlist-form__submit:hover {
  background: var(--primary-dark);
}

.waitlist-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist-form__message {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-dark);
  min-height: 1.2em;
}

/* Hero mockup */
.hero__mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.diagnosis-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -20px rgba(11, 15, 16, 0.25);
  padding: 1.25rem;
  width: 100%;
  max-width: 320px;
}

.diagnosis-card__room {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.diagnosis-card__photo {
  background: var(--background);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.diagnosis-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.diagnosis-card__cause {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.confidence-bar {
  background: var(--background);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.confidence-bar__fill {
  background: var(--primary);
  height: 100%;
}

.confidence-bar__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.diagnosis-card__history-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.diagnosis-card__history {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.phone-overlay {
  display: none;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 150px;
  background: var(--foreground);
  border-radius: 1.25rem;
  padding: 0.5rem;
  box-shadow: 0 20px 40px -15px rgba(11, 15, 16, 0.4);
}

@media (min-width: 900px) {
  .phone-overlay {
    display: block;
  }
}

.phone-overlay__screen {
  background: var(--card);
  border-radius: 0.9rem;
  padding: 0.75rem;
}

.phone-overlay__label {
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.phone-overlay__checklist {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.65rem;
  color: var(--muted);
}

/* Sections */
.section-heading {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.pillars,
.how-it-works,
.urgency,
.secondary-form {
  padding: 3rem 0;
}

.pillars {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.pillar__body {
  color: var(--muted);
  margin: 0;
}

.how-it-works__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .how-it-works__list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.how-it-works__step-title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--primary);
}

.how-it-works__step-body {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.urgency {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.urgency__body {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

.secondary-form {
  text-align: center;
}

.secondary-form__body {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.secondary-form .waitlist-form {
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__login a {
  color: var(--primary);
  font-weight: 600;
}
