/* HealthTrak website: the app's indigo on white, Inter, no frills. */
:root {
  --indigo: #3f51b5;
  --indigo-deep: #283593;
  --indigo-dark: #1a237e;
  --ink: #1b1b1f;
  --muted: #4a4c57;
  --line: #e2e4ee;
  --tint: #f3f4fb;
  --page: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--indigo-deep); }
a:hover { color: var(--indigo-dark); }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Top bar */
.top {
  background: var(--indigo);
  color: #fff;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}
.brand:hover { color: #fff; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
}
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #e8eaf6; text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: #fff; text-decoration: underline; }

/* Home: hero */
.hero { background: var(--indigo); color: #fff; padding: 40px 0 0; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: 19px; color: #e8eaf6; margin: 18px 0 0; max-width: 34em; }
.hero .badges { margin: 26px 0 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--indigo-dark);
  font-weight: 700;
  font-size: 15px;
}
.pill.ghost { background: transparent; color: #fff; border: 1.5px solid #c5cae9; }
.phone {
  border: 8px solid #0d1342;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  max-width: 300px;
  justify-self: center;
  line-height: 0;
}

/* Home: sections */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--indigo-dark);
}
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.features h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.shots figure { margin: 0; }
.shots img {
  border: 6px solid #1b1b1f;
  border-radius: 24px;
  display: block;
}
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

.tint { background: var(--tint); }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
}
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 28px; font-weight: 800; color: var(--indigo-dark); }
.plan ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

/* Policy pages */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; color: var(--indigo-dark); }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; color: var(--indigo-dark); }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc li { margin: 4px 0; }
.doc .note {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features, .plans { grid-template-columns: 1fr; }
  .top nav { gap: 12px; }
}
