/* MedMemory marketing site. Self-contained: no web fonts, no third-party assets. */
:root {
  --bg: #fbf8f3;
  --bg-alt: #f1ebe0;
  --surface: #ffffff;
  --text: #1b2128;
  --muted: #3f4852;
  --accent: #0b5e63;
  --accent-text: #ffffff;
  --accent-soft: #dcefee;
  --warn-bg: #fff4d6;
  --warn-border: #8a5a00;
  --border: #c9c0b1;
  --focus: #b3261e;
  --error: #a3211a;
  --success-bg: #dcefee;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161b;
    --bg-alt: #182028;
    --surface: #1d2630;
    --text: #eef2f5;
    --muted: #c3ccd4;
    --accent: #7fd6d1;
    --accent-text: #0b1a1c;
    --accent-soft: #173a3c;
    --warn-bg: #2e2612;
    --warn-border: #f2c35c;
    --border: #3a4652;
    --focus: #ffb4a9;
    --error: #ffb4a9;
    --success-bg: #173a3c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
:target { scroll-margin-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; /* 19px at default browser settings */
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

.skip-link {
  position: absolute; left: 0.5rem; top: -10rem;
  background: var(--accent); color: var(--accent-text);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; min-height: 48px; }
.brand img { width: 44px; height: 44px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.35rem; font-weight: 600; }

/* Sections */
section { padding: 3.25rem 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 1rem; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); border-radius: 999px; padding: 0.2rem 0.8rem; margin-bottom: 1rem; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40rem; }

/* Hero */
.hero { padding-top: 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero-art { justify-self: center; max-width: 20rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0.6rem 1.4rem; border-radius: 12px;
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
  border: 2px solid var(--accent);
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--accent); }
.button:hover { text-decoration: underline; }
@media (max-width: 30rem) { .buttons .button { width: 100%; } }

/* Cards and steps */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cards > li { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; height: 100%; }
.card h3 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 0.85rem; font-weight: 700; line-height: 1.3; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--warn-border); background: var(--warn-bg); color: var(--text); }

.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.steps > li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 0.6rem;
}

.two-col { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0.2rem; top: 0; font-weight: 800; color: var(--accent); }

.note { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: 10px; padding: 1.25rem 1.25rem 0.25rem; align-self: start; }
.note ul { padding-left: 1.25rem; }
.callout { background: var(--warn-bg); border: 2px solid var(--warn-border); border-radius: var(--radius); padding: 1.5rem 1.5rem 0.5rem; }
.small { font-size: 1.125rem; color: var(--muted); }
.small strong { color: var(--text); }

.email-line { font-weight: 700; overflow-wrap: anywhere; color: var(--text); }

/* Hero basics */
.pill-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li { margin: 0; font-weight: 600; font-size: 1rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 0.3rem 0.85rem; }

/* Coming later */
.coming-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.coming-list > li { margin: 0 0 1rem; padding: 1.1rem 1.25rem 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.coming-list h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 0.75rem; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; padding: 0.75rem 1.25rem; font-weight: 700; font-size: 1.15rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; margin-right: 0.75rem; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800; line-height: 1; }
.faq details[open] summary::before { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details > p { padding: 0 1.25rem; }

/* Contact line */
.contact-line { margin-top: 1rem; overflow-wrap: anywhere; }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem; font-size: 1.125rem; color: var(--muted); }
.site-footer p { max-width: 50rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Privacy page */
.page { padding: 2.5rem 0 3rem; }
.page h2 { font-size: 1.5rem; margin-top: 2rem; }

@media print {
  .site-nav, .skip-link, .buttons { display: none; }
  section { padding: 1rem 0; }
}

/* Feature groups (What it does) */
h4 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.6em; }
.feature-group { margin-top: 2.25rem; }
.feature-group:first-of-type { margin-top: 1.5rem; }
.group-title { font-size: clamp(1.35rem, 3.5vw, 1.6rem); padding-bottom: 0.4rem; border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: 0; }
.feature-group .cards { margin-top: 1rem; }
.checklist strong { color: var(--text); }

/* Forms (early access signup, contact) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; margin: 1.5rem 0 1.25rem; }
.form-card h3 { font-size: 1.4rem; }
@media (max-width: 30rem) { .form-card { padding: 1.25rem 1rem 1rem; } }
.form-intro { color: var(--muted); }
.form-required-note { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.25rem; }
.mm-form { margin: 0; }
.mm-form .field { margin: 0 0 1.4rem; }
.mm-form label, .mm-form legend { display: block; font-weight: 700; margin: 0 0 0.3rem; }
.mm-form fieldset { border: 0; padding: 0; min-width: 0; }
.mm-form legend { padding: 0; }
.field-hint { font-size: 1.05rem; color: var(--muted); margin: 0 0 0.4rem; }
.field-error { color: var(--error); font-weight: 700; margin: 0 0 0.4rem; }
.mm-form input[type="text"], .mm-form input[type="email"], .mm-form textarea {
  display: block; width: 100%; min-height: 56px; margin: 0;
  font: inherit; font-size: 1.1875rem; line-height: 1.4; color: var(--text);
  background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; padding: 0.65rem 0.85rem;
}
.mm-form textarea { min-height: 8.5rem; resize: vertical; }
.mm-form input[aria-invalid="true"], .mm-form textarea[aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.mm-form :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices .choice { display: flex; align-items: center; gap: 0.75rem; min-height: 48px; margin: 0; }
.choices .choice input { flex: none; width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--accent); }
.choices .choice label { flex: 1; font-weight: 400; margin: 0; padding: 0.4rem 0; cursor: pointer; }
.choices.has-error { border-left: 4px solid var(--error); padding-left: 0.85rem; }
.mm-form button { font-family: inherit; cursor: pointer; }
.mm-form[aria-busy="true"] button { opacity: 0.75; cursor: progress; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; }
.form-status:not(:empty) { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border-radius: 10px; border: 2px solid var(--border); border-left-width: 6px; font-weight: 700; background: var(--bg); }
.form-status.is-error { border-color: var(--error); }
.form-status.is-success { border-color: var(--accent); background: var(--success-bg); }
.form-sent { display: none; }
.form-sent:target { display: block; font-weight: 700; padding: 0.85rem 1rem; border-radius: 10px; border: 2px solid var(--accent); border-left-width: 6px; background: var(--success-bg); }
/* no-JS fallback pages served by the form service */
.form-errors, .form-notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem 0.25rem; border-radius: 10px; border: 2px solid var(--error); border-left-width: 6px; background: var(--surface); }
.form-notice { border-color: var(--accent); }
.form-errors h2, .form-notice h2 { font-size: 1.3rem; margin-top: 0; }
.form-errors a { font-weight: 700; color: var(--error); }
.page .mm-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.25rem 1.25rem; margin-bottom: 1.5rem; }

/* Hook (top of home page): the paperwork problem, then the answer */
.hook { background: var(--bg-alt); padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.hook-grid { display: grid; gap: 1.5rem; grid-template-areas: "copy" "art" "cta"; }
.hook-copy { grid-area: copy; }
.hook-figure { grid-area: art; margin: 0; }
.hook-cta { grid-area: cta; }
.hook h1 { font-size: clamp(2.4rem, 9vw, 3.9rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 850; margin-bottom: 0.5em; text-wrap: balance; }
.hook-sub { font-size: clamp(1.3rem, 4.2vw, 1.55rem); line-height: 1.4; font-weight: 600; max-width: 34rem; margin: 0; }
.hook-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.hook-figure figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; text-align: right; }
.hook-payoff { font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.15; font-weight: 850; color: var(--accent); margin: 0 0 0.5rem; }
.hook-detail { max-width: 36rem; margin-bottom: 0; }
.hook .buttons { margin-top: 1.25rem; }
.hook .button { min-height: 60px; font-size: 1.25rem; }
.hook-note { font-size: 1.05rem; color: var(--muted); margin: 1rem 0 0; }
@media (min-width: 52rem) {
  .hook { padding: 3rem 0 3.25rem; }
  .hook-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy art" "cta art"; column-gap: 2.5rem; row-gap: 1.75rem; align-items: start; }
  .hook-copy { align-self: end; }
  .hook-cta { align-self: start; }
  .hook-figure { align-self: center; }
}
/* the older intro hero now sits below the hook, so its title is a section heading */
.hero-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }

/* ===== v2: What it does today, phone frames, roadmap ===== */
.hook { padding-bottom: 2.75rem; }
.hook .pill-list { margin-top: 1.25rem; }
.showcase { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.showcase > li { margin: 0; }
.show { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.show-text h3 { font-size: clamp(1.35rem, 4vw, 1.7rem); margin-bottom: 0.4em; }
.show-text p:last-child { margin-bottom: 0; }
.phone { margin: 0; justify-self: center; width: 220px; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 649; background: var(--bg-alt); border: 8px solid #1b2128; border-radius: 30px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
@media (prefers-color-scheme: dark) { .phone img { border-color: #3a4652; box-shadow: 0 6px 18px rgba(0,0,0,0.5); } }
@media (min-width: 46rem) {
  .show { grid-template-columns: 240px 1fr; gap: 2rem; padding: 1.5rem 1.75rem; }
  .phone { width: 240px; }
  .showcase > li:nth-child(even) .show { grid-template-columns: 1fr 240px; }
  .showcase > li:nth-child(even) .phone { order: 2; }
}
.cta-band { margin: 2.25rem 0 2.5rem; padding: 1.5rem; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-band-text { margin: 0; font-weight: 800; font-size: 1.3rem; flex: 1 1 16rem; }
@media (max-width: 30rem) { .cta-band .button { width: 100%; } }
.tight { padding-left: 1.2rem; margin-bottom: 0.75rem; }
.tight li + li { margin-top: 0.4em; }
.more-cards { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.more-cards .card { padding-bottom: 0.75rem; }
.coming-list h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
#coming .group-title { display: block; border-bottom-width: 3px; margin-top: 1.75rem; }
#your-data .two-col h3 { margin-top: 0.5rem; }
#your-data .two-col > div > h3:not(:first-child) { margin-top: 1.5rem; }
.note > p { margin-top: 0; }

/* Radios and checkboxes: clear outline in both light and dark (needs 3:1 against the card) */
.choices .choice input[type="radio"], .choices .choice input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; background: var(--bg); border: 2px solid var(--muted); display: inline-grid; place-content: center; cursor: pointer;
}
.choices .choice input[type="radio"] { border-radius: 50%; }
.choices .choice input[type="checkbox"] { border-radius: 6px; }
.choices .choice input[type="radio"]::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--accent); transform: scale(0); }
.choices .choice input[type="checkbox"]::before { content: ""; width: 0.9rem; height: 0.9rem; background: var(--accent); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); transform: scale(0); }
.choices .choice input:checked::before { transform: scale(1); }
.choices .choice input:checked { border-color: var(--accent); }
.choices .choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (forced-colors: active) { .choices .choice input:checked::before { background: Highlight; } }
.choices .choice input[type="radio"], .choices .choice input[type="checkbox"] { width: 1.9rem; height: 1.9rem; }

/* import guide */
.guide-steps { margin: 0.75rem 0 1rem; padding-left: 1.5rem; }
.guide-steps li + li { margin-top: 0.55em; }
.show.no-phone, .showcase > li:nth-child(even) .show.no-phone { grid-template-columns: 1fr; }
#import-guide .lead { margin-bottom: 0.5rem; }
