/* Medical Data Brokerage Service — shared layout and marketing pages */

:root {
  --ocean-deep: #06192b;
  --ocean-mid: #0c2d4a;
  --ocean-surface: #124060;
  --ocean-bright: #1a6b8c;
  --ocean-glow: #2a9bc4;
  --foam: #c5e8f5;
  --foam-light: #e8f6fb;
  --white: #f7fbfd;
  --text-muted: rgba(247, 251, 253, 0.78);
  --accent-warm: #4fd1c5;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(6, 25, 43, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ocean-deep);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(42, 155, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(26, 107, 140, 0.2), transparent 50%),
    linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 45%, #0a2238 100%);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap.wrap--narrow {
  max-width: 640px;
}

header {
  padding: 1.25rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--foam);
}

a.logo {
  text-decoration: none;
}

a.logo:hover {
  color: var(--foam-light);
}

.back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 209, 197, 0.4);
  padding-bottom: 0.1rem;
}

.back:hover {
  border-bottom-color: var(--accent-warm);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent-warm);
  border: 1px solid rgba(79, 209, 197, 0.35);
}

main.page-contact {
  padding: 0 0 4rem;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--foam-light);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 64, 96, 0.55), rgba(12, 45, 74, 0.75));
  border: 1px solid rgba(197, 232, 245, 0.12);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card p + p {
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.contact-form__message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: rgba(79, 209, 197, 0.12);
  border: 1px solid rgba(79, 209, 197, 0.35);
  color: var(--foam-light);
}

.contact-form__message--error {
  background: rgba(220, 80, 80, 0.15);
  border-color: rgba(220, 120, 120, 0.45);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foam);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(197, 232, 245, 0.2);
  background: rgba(6, 25, 43, 0.45);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(247, 251, 253, 0.4);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: rgba(79, 209, 197, 0.55);
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.15);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__errors {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #f0a8a8;
}

.contact-form__errors--nonfield {
  margin-bottom: 0.25rem;
}

.contact-form__actions {
  margin-top: 0.25rem;
}

.contact-form__submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.hero {
  padding: 2rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(197, 232, 245, 0.08);
  border: 1px solid rgba(197, 232, 245, 0.2);
  color: var(--foam);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ocean-glow), var(--ocean-bright));
  color: var(--ocean-deep);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(42, 155, 196, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(42, 155, 196, 0.45);
}

.btn-ghost {
  color: var(--foam);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 232, 245, 0.4);
  padding-bottom: 0.1rem;
}

.hero-card {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(18, 64, 96, 0.55), rgba(12, 45, 74, 0.75));
  border: 1px solid rgba(197, 232, 245, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.hero-card > .channel-diagram {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hero-card > .channel-diagram {
    justify-content: center;
    min-height: 100%;
    height: 100%;
  }
}

.hero-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.channel-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(6, 25, 43, 0.5);
  border-radius: var(--radius);
  border: 1px dashed rgba(79, 209, 197, 0.35);
}

.channel-node {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foam-light);
}

.channel-node span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.channel-arrow {
  font-size: 1.25rem;
  color: var(--ocean-glow);
}

.flow-label {
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}

.channel-svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.channel-caption {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(197, 232, 245, 0.1);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

.channel-caption .channel-caption__note {
  display: block;
  margin-top: 0.45rem;
}

section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(197, 232, 245, 0.08);
}

section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--foam-light);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-tight {
  padding: 2rem 0 3rem;
}

.section-heading-standalone {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--foam-light);
  margin-bottom: 0.75rem;
}

.section-intro--spaced {
  margin-bottom: 2rem;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  background: rgba(18, 64, 96, 0.35);
  border: 1px solid rgba(197, 232, 245, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.flow-step:hover {
  border-color: rgba(42, 155, 196, 0.35);
}

.flow-step__icon-wrap {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.flow-step__icon {
  color: var(--accent-warm);
}

.flow-step__title {
  font-weight: 700;
  color: var(--foam-light);
  margin-bottom: 0.35rem;
}

.flow-step__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  color: var(--ocean-glow);
  padding: 0 0.25rem;
}

.flow-step-arrow i {
  display: none;
  margin: 0 0.25rem;
}

.flow-steps-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  width: 60%;
  margin: 0.5rem auto 0;
  opacity: 0.3;
}

.flow-steps-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.flow-steps-cta {
  text-align: center;
  margin-top: 1.75rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(18, 64, 96, 0.35);
  border: 1px solid rgba(197, 232, 245, 0.1);
  transition: border-color 0.2s ease;
}

.feature:hover {
  border-color: rgba(42, 155, 196, 0.35);
}

.feature strong {
  display: block;
  font-size: 1.05rem;
  color: var(--foam);
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.compare-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12, 45, 74, 0.5);
  border-radius: var(--radius);
  border: 1px solid rgba(197, 232, 245, 0.12);
  font-size: 0.9rem;
  min-width: 550px;
}

.compare-table th {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(197, 232, 245, 0.2);
  color: var(--accent-warm);
  font-weight: 600;
}

.compare-table th:first-child {
  text-align: left;
}

.compare-table td {
  padding: 1rem;
}

.compare-table tbody tr {
  border-bottom: 1px solid rgba(197, 232, 245, 0.08);
}

.compare-table .compare-feature {
  font-weight: 500;
  color: var(--foam-light);
}

.compare-table .compare-cell {
  text-align: center;
  font-size: 1.1rem;
}

.compare-table .compare-cell--icon {
  font-size: 1.4rem;
}

.compare-table .compare-cell--ok {
  color: var(--accent-warm);
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.compare-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

.legal-strip {
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(6, 25, 43, 0.65);
  border: 1px solid rgba(197, 232, 245, 0.1);
}

.legal-strip ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .legal-strip ul {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-strip li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ocean-glow);
}

.mid-cta {
  padding: 2rem 0 3rem;
  border-top: none;
}

.mid-cta__inner {
  background: linear-gradient(135deg, rgba(42, 155, 196, 0.12), rgba(26, 107, 140, 0.08));
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(79, 209, 197, 0.25);
  padding: 2rem 1.5rem;
  text-align: center;
}

.mid-cta__emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.mid-cta__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--foam-light);
  margin-bottom: 0.75rem;
}

.mid-cta__text {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.mid-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.mid-cta__actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mid-cta__link {
  color: var(--foam);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 232, 245, 0.4);
  padding-bottom: 0.2rem;
}

.mid-cta__fine {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

section.section-compare {
  padding-top: 0;
}

.closing {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.closing blockquote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--foam);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.45;
}

.closing .cite {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.closing .closing__hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.closing .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

footer {
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 251, 253, 0.45);
  border-top: 1px solid rgba(197, 232, 245, 0.06);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__legal {
  font-size: 0.75rem;
  color: rgba(247, 251, 253, 0.45);
  text-align: center;
  line-height: 1.5;
}

.site-footer__copy {
  font-size: 0.7rem;
}
