/* MedRecAI website: shared styles for the home, privacy and terms pages.
   No web fonts, scripts or cookies: the Privacy Policy says this site uses no trackers. */

:root {
  color-scheme: light dark;

  --brand: #2a9d90;
  --brand-strong: #1d6b62;
  --brand-soft: #e9f5f3;
  --brand-line: #bfe5df;
  --btn-bg: #1d6b62;
  --btn-bg-hover: #17574f;
  --btn-fg: #ffffff;

  --ink: #13252b;
  --text: #34444a;
  --muted: #5d6c72;
  --line: #e1e8ea;
  --page: #ffffff;
  --surface: #f5f8f8;
  --card: #ffffff;

  --amber-fg: #92400e;
  --amber-bg: #fef3c7;
  --highlight: rgba(244, 164, 98, 0.32);

  --shadow-sm: 0 1px 2px rgba(16, 40, 44, 0.06);
  --shadow-lg: 0 28px 56px -20px rgba(4, 28, 26, 0.45);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-strong: #6fd3c6;
    --brand-soft: #11302c;
    --brand-line: #1f4a44;
    --btn-bg: #6fd3c6;
    --btn-bg-hover: #8fe0d5;
    --btn-fg: #07211e;

    --ink: #eef4f5;
    --text: #c6d2d5;
    --muted: #97a7ac;
    --line: #233237;
    --page: #0d1416;
    --surface: #111b1e;
    --card: #152125;

    --amber-fg: #fcd34d;
    --amber-bg: #3b2a0a;
    --highlight: rgba(244, 164, 98, 0.28);

    --shadow-sm: none;
    --shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

mark {
  background: var(--highlight);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark svg {
  flex: none;
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  font-size: 15px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.site-nav .nav-cta {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 550;
}

.site-nav .nav-cta:hover {
  border-color: var(--brand);
}

@media (max-width: 760px) {
  .site-nav .nav-section {
    display: none;
  }
}

@media (max-width: 400px) {
  .site-header .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    gap: 0 14px;
    font-size: 14px;
  }

  .site-nav .nav-cta {
    padding: 0 12px;
  }
}

@media (max-width: 374px) {
  .site-header .wordmark {
    gap: 8px;
    font-size: 17px;
  }

  .site-header .wordmark svg {
    width: 28px;
    height: 28px;
  }

  .site-nav {
    gap: 0 12px;
  }

  .site-nav .nav-cta {
    padding: 0 10px;
  }
}

/* Home: hero */

.hero {
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(111, 211, 198, 0.28), transparent 62%),
    linear-gradient(160deg, #22877c 0%, #17635b 48%, #0f4540 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero .eyebrow {
  color: #bdf0e8;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero .lead {
  max-width: 580px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn-primary {
  background: #fff;
  color: #0f4540;
}

.hero .btn-primary:hover {
  background: #e6f6f3;
  color: #0f4540;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero .fineprint {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    padding-top: 96px;
    padding-bottom: 104px;
  }
}

/* Home: illustration of a finding card (decorative) */

.mock {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 960px) {
  .mock {
    justify-self: end;
  }
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mock-bar strong {
  color: var(--ink);
  font-weight: 650;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-amber {
  background: var(--amber-bg);
  color: var(--amber-fg);
}

.mock-label {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-rule {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
}

.mock-quote {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #f4a462;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.mock-why {
  margin: 12px 0 0;
  color: var(--muted);
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.mock-btn.is-on {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.mock-send {
  margin-left: auto;
  border-color: transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

/* Home: sections */

.section {
  padding: 80px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p:not(.eyebrow) {
  margin: 14px 0 0;
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-num {
  margin: 18px 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
}

.split {
  display: grid;
  gap: 48px;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
  }
}

.split > div > p {
  max-width: 600px;
}

.checks {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d90' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.checks strong {
  color: var(--ink);
}

.consent {
  max-width: 600px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
}

.consent figcaption {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.consent blockquote {
  margin: 0;
  color: var(--ink);
}

.small {
  color: var(--muted);
  font-size: 14.5px;
}

/* Home: example text messages (decorative) */

.phone {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.phone-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
}

.phone-time {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.bubble {
  max-width: 88%;
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.bubble .link {
  color: var(--brand-strong);
  text-decoration: underline;
}

.phone-note {
  max-width: 360px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Home: contact */

.cards-2 {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

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

.card p {
  margin: 0 0 12px;
}

.card .btn {
  margin-top: 8px;
}

.card-solo {
  max-width: 520px;
}

.contact-card {
  font-style: normal;
  line-height: 1.85;
}

.contact-card strong {
  color: var(--ink);
}

/* Legal pages */

.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-head .wrap {
  padding-top: 56px;
  padding-bottom: 44px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-head .meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.page-head .intro {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 17px;
}

.glance {
  max-width: 720px;
  margin-top: 28px;
  padding: 20px 24px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.glance-title {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

.glance .checks {
  margin: 10px 0;
}

.legal-layout {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 88px;
}

.toc {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.toc-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 650;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc li {
  margin: 4px 0;
  padding-left: 2px;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.aside-related {
  margin: 16px 0 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 560px) and (max-width: 959px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 236px minmax(0, 720px);
    gap: 64px;
    padding-top: 48px;
  }

  .legal-aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }

  .toc {
    padding: 0 0 0 18px;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
    font-size: 14px;
  }

  .toc-title {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .toc ol {
    padding-left: 20px;
  }

  .toc li {
    margin: 7px 0;
  }

  .aside-related {
    padding-left: 18px;
  }
}

.legal h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal > h2:first-child {
  margin-top: 0;
}

.legal h2 .num {
  margin-right: 6px;
  color: var(--brand-strong);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin: 8px 0;
}

.legal li strong {
  color: var(--ink);
}

.legal .contact-card {
  max-width: 440px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.callout {
  margin: 48px 0 0;
  padding: 6px 24px 12px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.callout + h2 {
  margin-top: 48px;
}

.callout h2 {
  margin-top: 20px;
}

.callout .lede {
  color: var(--ink);
}

.back-top {
  margin-top: 48px !important;
  font-size: 14px;
}

@media (max-width: 560px) {
  .callout {
    padding: 4px 18px 10px;
  }

  .glance {
    padding: 18px 18px 6px;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-brand p {
  max-width: 320px;
  margin: 10px 0 0;
}

.footer-brand .wordmark {
  font-size: 17px;
}

.footer-brand .wordmark svg {
  width: 28px;
  height: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 24px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  /* A divider that stops at the content edges, not the padding. */
  background: linear-gradient(var(--line), var(--line)) 20px 0 / calc(100% - 40px) 1px no-repeat;
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  .hero-grid {
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .mock-send {
    margin-left: 0;
  }

  .card {
    padding: 22px;
  }

  .page-head .wrap {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

/* Print: legal pages print as plain documents */

@media print {
  .site-header,
  .legal-aside,
  .site-footer nav,
  .skip,
  .back-top {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-head,
  .callout,
  .glance {
    border: 0;
    background: none;
    box-shadow: none;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }
}
