/* MedRec List — site styles. Mobile first, no external requests. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1e7b46;
  --green-hover: #155c34;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #4a5563;
  --tint: #e3f1e8;
  --line: #d9dcd3;
  --draft-bg: #fff4d6;
  --draft-ink: #5c3d00;
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
  --prose: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  margin-top: 1.6em;
}
h3 {
  font-size: 1.3rem;
  margin-top: 1.2em;
}
p,
ul,
ol,
dl {
  margin: 0 0 1em;
}
li {
  margin-bottom: 0.45em;
}

a {
  color: var(--green-hover);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.prose {
  max-width: var(--prose);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}
.brand svg {
  width: 40px;
  height: 40px;
  flex: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li {
  margin: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--tint);
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: var(--green);
}
.site-nav .lang-link {
  border: 2px solid var(--green);
  color: var(--green-hover);
}

/* Draft banner */
.draft-banner {
  background: var(--draft-bg);
  color: var(--draft-ink);
  border-bottom: 2px solid #e0b64a;
  font-weight: 700;
  text-align: center;
  padding: 12px var(--gutter);
}
.draft-banner p {
  margin: 0;
}

/* Sections */
main {
  display: block;
}
.section {
  padding: 56px 0;
}
.section--tint {
  background: var(--tint);
}
.section--white {
  background: var(--surface);
}
.section h2:first-child,
.section .eyebrow + h2 {
  margin-top: 0;
}
.eyebrow {
  margin: 0 0 0.5em;
  color: var(--green-hover);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 38rem;
}
.page-head {
  padding: 48px 0 8px;
}
.page-body {
  padding: 8px 0 64px;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  max-width: 16ch;
}

/* Store buttons (placeholders) */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}
.stores li {
  margin: 0;
}
.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  min-width: 190px;
  padding: 8px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  line-height: 1.25;
}
.store small {
  font-size: 0.875rem;
  color: #e6e8eb;
}
.store strong {
  font-size: 1.15rem;
}
.note {
  font-size: 1rem;
  color: var(--muted);
}

/* Screenshot placeholders */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.phone {
  display: grid;
  place-items: center;
  width: min(44%, 230px);
  aspect-ratio: 9 / 19;
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: #d5d8dc;
  color: var(--ink);
  font-weight: 700;
}
.phone:nth-child(2) {
  margin-top: 40px;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.grid > li {
  margin: 0;
}
.card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card h3 {
  margin-top: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: var(--green);
}

/* Privacy promise band */
.promise {
  background: var(--green);
  color: #fff;
}
.promise h2,
.promise .eyebrow,
.promise a {
  color: #fff;
}
.promise .lead {
  color: #fff;
}
.promise ul {
  padding-left: 1.2em;
}
.promise a:hover {
  color: var(--tint);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  background: var(--green-hover);
  color: #fff;
}
.button--light {
  background: #fff;
  color: var(--green-hover);
}
.button--light:hover {
  background: var(--tint);
  color: var(--green-hover);
}

/* Callouts */
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.callout p:last-child {
  margin-bottom: 0;
}

/* Legal text */
.legal h2 {
  font-size: 1.55rem;
}
.legal h3 {
  font-size: 1.2rem;
}
.legal .meta {
  color: var(--muted);
}
.toc {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.toc ol {
  margin: 0;
  padding-left: 1.3em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  background: var(--surface);
}
th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--tint);
}
.table-scroll {
  overflow-x: auto;
}

/* FAQ */
details {
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
summary {
  min-height: 48px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
}
details > div {
  padding: 0 20px 8px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 40px 0 32px;
  background: var(--ink);
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--tint);
}
.site-footer :focus-visible {
  outline-color: #fff;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #3a4452;
  color: #d4d8de;
  font-size: 1rem;
}

.not-found {
  padding: 72px 0;
}

/* Larger screens */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .section {
    padding: 72px 0;
  }
}
@media (min-width: 960px) {
  .hero {
    padding: 72px 0 80px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .grid--features {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .button,
  .site-nav a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
  }
}
