/* SealCare public site — shares the app's tokens (expo/theme.ts) so the web
   pages read as the same product as the app. Light-only, matching the app's
   userInterfaceStyle. Type is deliberately large: much of our audience is
   older, and legal text is exactly where small print fails people. */

:root {
  --purple: #6346ff;
  --purple-dark: #4632bb;
  --tint: #f0eeff;
  --surface: #ffffff;
  --sunken: #f5f5fa;
  --text-strong: #1a1b25;
  --text-muted: #4b5563;
  --hairline: #ececf3;
  --radius: 16px;
  --measure: 44rem;
}

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

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

body {
  margin: 0;
  background: var(--sunken);
  color: var(--text-strong);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* Keyboard users must always be able to see where they are. */
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Header --------------------------------------------------------------- */

.masthead {
  background: var(--purple);
  color: #fff;
  padding: 2rem 1.25rem;
  text-align: center;
}

.masthead a {
  color: #fff;
  text-decoration: none;
}

.wordmark {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: #edebff;
}

/* --- Layout --------------------------------------------------------------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

@media (max-width: 30rem) {
  .sheet {
    padding: 1.5rem 1.25rem;
  }
}

/* --- Typography ----------------------------------------------------------- */

h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  color: var(--text-muted);
}

/* Lead paragraphs and anything the reader must not skim past stay full-strength. */
.lead,
strong {
  color: var(--text-strong);
}

.lead {
  font-size: 1.125rem;
}

.dates {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--purple-dark);
  text-underline-offset: 2px;
}

/* --- Callout -------------------------------------------------------------- */

.callout {
  background: var(--tint);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

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

.callout > :last-child {
  margin-bottom: 0;
}

/* --- Contact / actions ---------------------------------------------------- */

.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact li {
  margin-bottom: 0.75rem;
  color: var(--text-strong);
}

.contact .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  /* Comfortably past the 44px touch-target floor. */
  min-height: 54px;
  line-height: 2.1;
}

.button:hover {
  background: var(--purple-dark);
}

/* --- Footer --------------------------------------------------------------- */

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
}

footer a {
  color: var(--purple-dark);
}
