/* Homeport Health brand tokens (from the platform design system, knowledge-base/design-system/hph-base.css). */
@font-face { font-family: 'Roboto'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/roboto-700.woff2') format('woff2'); }

:root {
  --brand: #E4322B; --brand-deep: #B8211A; --brand-ice: #FDF2F0; --brand-pale: #F8D5D1;
  --accent-bright: #FFB800;
  --ink-900: #14110F; --ink-700: #2A2521; --ink-500: #5A534C;
  --gray50: #F9F7F5; --gray100: #F1EDE8; --gray200: #E4DED7;
  --ok: #1E7A46; --err: #B8211A;
  --radius: 8px; --radius-md: 6px;
  --sans: 'Roboto', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-900);
  background: var(--gray50); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.top {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { display: block; height: 28px; width: auto; }
.top-link { color: var(--ink-700); text-decoration: none; font-weight: 700; font-size: 15px; }
.top-link:hover { color: var(--brand); }

.hero { padding: 72px 0 88px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px;
  background: #fff; border: 1px solid var(--gray200); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-700);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px #FFB80033; }
h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 700; }
.lede { font-size: 18px; color: var(--ink-500); margin: 0 0 16px; max-width: 680px; }
.hero .btn { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border-radius: var(--radius-md); border: 1px solid transparent; font: 700 15px var(--sans);
  text-decoration: none; cursor: pointer; transition: background .12s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px;
  padding: 64px 0 96px; border-top: 1px solid var(--gray200);
}
.contact h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 12px; }
.contact-intro p { color: var(--ink-500); margin: 0; }

.card { background: #fff; border: 1px solid var(--gray200); border-radius: var(--radius); padding: 28px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-500); }
input, select, textarea {
  width: 100%; border: 1px solid var(--gray200); border-radius: var(--radius-md); background: #fff;
  font: 400 16px var(--sans); color: var(--ink-900); padding: 10px 12px;
}
input, select { height: 44px; }
textarea { resize: vertical; min-height: 120px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); background: var(--brand-ice); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--ink-500); margin: 0 0 18px; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { margin: 0; font-size: 15px; }
.status.ok { color: var(--ok); font-weight: 700; }
.status.err { color: var(--err); }

.foot {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--gray200);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-500);
}
.foot a { color: var(--ink-500); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.note a { color: var(--ink-700); }
.foot a:hover { color: var(--brand); }

/* Privacy Policy and Terms pages */
.legal { padding-top: 40px; padding-bottom: 80px; }
.legal > * { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-500); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-700); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-deep); }

@media (max-width: 760px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 20px; padding-bottom: 20px; }
  .hero { padding: 40px 0 56px; }
  .lede { font-size: 17px; }
  .contact { grid-template-columns: 1fr; gap: 24px; padding: 48px 0 64px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px; }
  .legal { padding-top: 16px; padding-bottom: 56px; }
}
