/* Fonts are self-hosted (OFL) so visiting this page tells no third party anything. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/archivo-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans Ethiopic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-sans-ethiopic-ethiopic-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans Ethiopic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/noto-sans-ethiopic-ethiopic-700-normal.woff2') format('woff2');
}

/* Tokens from design_handoff_nxt_health/README.md (Modernist system, zero radius). */
:root {
  --bg: #f3f2f2;
  --white: #ffffff;
  --ink: #201e1d;
  --accent: #ec3013;
  --accent-100: #fff2ef;
  --accent-600: #dd2b0f;
  --accent-700: #ae1800;
  --accent-800: #7c1405;
  --accent-900: #4d170e;
  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;
  --neutral-700: #605d5d;
  --divider: rgb(32 30 29 / 40%);
  --shadow-sm: 0 1px 2px rgb(45 43 43 / 14%);
  --shadow-lg: 0 12px 32px rgb(45 43 43 / 22%);
  --font: 'Archivo', 'Noto Sans Ethiopic', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

html[lang='am'] h1,
html[lang='am'] h2,
html[lang='am'] h3 {
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar,
main > section,
.footer {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--white);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--white);
}

.lang button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.meta {
  font-size: 13px;
  color: var(--neutral-700);
}

.lead {
  font-size: 19px;
  max-width: 34em;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}

/* Buttons: label left, icon right (design rule). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  min-width: 260px;
  padding: 0 20px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--accent-600);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn[aria-disabled='true'] {
  background: var(--neutral-300);
  color: var(--neutral-700);
  pointer-events: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
}

.download {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.phone {
  width: min(340px, 100%);
  margin-inline: auto;
  background: var(--bg);
  border: 10px solid var(--ink);
  box-shadow: var(--shadow-lg);
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
}

.phone__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.phone__name {
  font-weight: 800;
  font-size: 15px;
}

.phone__sub {
  font-size: 11px;
  color: var(--neutral-700);
}

.phone__chat {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.bubble {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble--user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--ink);
  color: var(--white);
}

.bubble__help {
  background: var(--accent-100);
  color: var(--accent-900);
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  font-size: 13px;
}

/* Sections */
.promises,
.split,
.help {
  padding: 56px 0;
  border-top: 2px solid var(--divider);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  font-size: 18px;
}

.card--accent {
  background: var(--accent);
  color: var(--white);
}

.card--ink {
  background: var(--ink);
  color: var(--white);
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.steps li:last-child::before {
  background: var(--accent);
}

#checksum {
  margin-top: 16px;
  word-break: break-all;
}

.help {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.help p {
  max-width: 40em;
}

.footer {
  padding: 32px 0 48px;
  border-top: 2px solid var(--divider);
  font-size: 13px;
  color: var(--neutral-700);
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 16px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }
}
