/* MyCareFile website. Brand palette from src/theme/colors.ts. System fonts only: no font or tracking requests to other sites. */
:root {
  --teal: #00a7b5;
  --teal-dark: #00737c;
  --purple: #7d4bbf;
  --slate: #2f2f2f;
  --muted: #566170;
  --grey: #f5f5f5;
  --line: #e1e4ea;
  --white: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 38px; height: 38px; }
.brand .my { color: var(--teal-dark); }
.brand .cf { color: var(--purple); }
nav.site a { margin-left: 18px; color: var(--slate); text-decoration: none; font-weight: 600; font-size: 16px; }
nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--teal-dark); }

.hero { background: linear-gradient(135deg, #0e9aa7 0%, #4f6fbf 55%, var(--purple) 100%); color: var(--white); }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .second { margin: 0 0 22px; font-size: clamp(20px, 3vw, 26px); font-weight: 600; opacity: 0.95; }
.hero p.lede { max-width: 620px; font-size: 20px; margin: 0 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: center; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 260px; order: -1; }
}
.pill { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }

section.block { padding: 56px 0; }
section.block.alt { background: var(--grey); }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 26px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

form.waitlist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 22px; display: grid; gap: 14px; max-width: 560px; }
form.waitlist label { font-weight: 600; display: grid; gap: 6px; }
form.waitlist input[type='email'], form.waitlist input[type='text'] { font: inherit; padding: 12px 14px; border: 1.5px solid #c9d1da; border-radius: 10px; min-height: 50px; }
form.waitlist .who { display: grid; gap: 8px; font-weight: 400; }
form.waitlist .who label { font-weight: 400; display: flex; gap: 10px; align-items: center; }
form.waitlist button { font: inherit; font-weight: 700; color: var(--white); background: var(--teal-dark); border: 0; border-radius: 12px; min-height: 54px; cursor: pointer; }
form.waitlist button:hover { background: #005e66; }
form.waitlist .small { font-size: 15px; color: var(--muted); margin: 0; }
.hidden { position: absolute; left: -9999px; }

.prose h2 { margin-top: 40px; font-size: 26px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; background: var(--white); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-bottom: 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; }
footer.site .wrap { padding-top: 26px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); }
