/* 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;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  padding: 0.45rem 0 0.5rem;
  border-bottom: 1px solid rgba(197, 232, 245, 0.08);
}

.site-nav__brand.logo {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0.12rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  flex-shrink: 0;
}

.site-nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--foam);
  border-bottom-color: rgba(197, 232, 245, 0.35);
}

.site-nav__link--current {
  color: var(--accent-warm);
  border-bottom-color: rgba(79, 209, 197, 0.45);
}

.site-nav__link--current:hover {
  color: var(--accent-warm);
  border-bottom-color: rgba(79, 209, 197, 0.65);
}

.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-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.05rem, 0.4rem + 1.85vw, 1.38rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--foam);
}

.logo__mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

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-bottom: 4rem;
}

main.page-contact .card + .card {
  margin-top: 1.5rem;
}

.page-whymdbs__lead {
  padding-top: 0.75rem;
}

.page-whymdbs__title {
  margin-bottom: 0;
}

.page-whymdbs__hero {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.page-whymdbs__hero .hero-card {
  margin-top: 0;
}

.who-is-mdbs__cta {
  margin-top: 1.25rem;
}

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;
}

.architecture-headline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foam-light);
  line-height: 1.45;
  margin: 0 0 1rem;
  max-width: 38rem;
}

.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;
}

/* Architecture page — disconnected “what’s stored” cells */
.card--storage-diagram .storage-diagram p {
  font-size: inherit;
}

.storage-diagram {
  display: grid;
  gap: 0.75rem;
  font-size: 0.8rem;
}

@media (min-width: 720px) {
  .storage-diagram {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.storage-diagram__cell {
  padding: 0.85rem 0.65rem;
  border-radius: var(--radius);
  background: rgba(6, 25, 43, 0.45);
  border: 1px solid rgba(197, 232, 245, 0.12);
  text-align: center;
}

.storage-diagram__cell > p {
  margin: 0;
}

.storage-diagram__cell--open {
  border-color: rgba(72, 180, 130, 0.55);
  background: rgba(18, 72, 52, 0.42);
}

.storage-diagram__cell--encrypted,
.storage-diagram__cell--locked {
  border-color: rgba(200, 95, 105, 0.55);
  background: rgba(72, 28, 36, 0.4);
}

.storage-diagram__cell--open p + p,
.storage-diagram__cell--encrypted p + p,
.storage-diagram__cell--locked p + p {
  margin-top: 0.4rem;
}

.storage-diagram__locked-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.storage-diagram__locked-word {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storage-diagram__cell--open .storage-diagram__locked-word {
  color: #6ee7b7;
  text-shadow: 0 0 14px rgba(110, 231, 183, 0.35);
}

.storage-diagram__cell--encrypted .storage-diagram__locked-word,
.storage-diagram__cell--locked .storage-diagram__locked-word {
  color: #f0a8ae;
  text-shadow: 0 0 14px rgba(240, 168, 174, 0.35);
}

.storage-diagram__cell--open .storage-diagram__lock-icon {
  color: #5fd4a8;
}

.storage-diagram__cell--encrypted .storage-diagram__lock-icon,
.storage-diagram__cell--locked .storage-diagram__lock-icon {
  color: #e8959c;
}

.storage-diagram__lock-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.storage-diagram__locked-sub {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.card--storage-diagram .storage-diagram .storage-diagram__locked-sub {
  font-size: 0.72rem;
}

/* Architecture page — data flow diagram */
.card--data-flow .data-flow {
  margin-top: 0.75rem;
}

.data-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.data-flow__arrow {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.35rem 0;
}

.data-flow__arrow-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ocean-glow);
  font-weight: 600;
}

.data-flow__arrow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.data-flow__arrow strong {
  color: var(--foam-light);
  font-weight: 600;
}

.data-flow__box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(6, 25, 43, 0.5);
  border: 1px solid rgba(197, 232, 245, 0.16);
}

.data-flow__box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.data-flow__box strong {
  color: var(--foam-light);
  font-weight: 600;
}

.data-flow__footnote,
.storage-diagram__footnote {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 232, 245, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.data-flow__footnote strong,
.storage-diagram__footnote strong {
  color: var(--foam-light);
  font-weight: 600;
}

.card--storage-diagram p.storage-diagram__footnote {
  font-size: 0.85rem;
}

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

.contact-form__messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  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__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
}

@media (max-width: 520px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

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

.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__actions--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.auth-hint--action {
  margin-top: 0;
  font-size: 0.88rem;
}

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

.hero {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

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

.hero .lead {
  font-size: 1.15rem;
  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;
}

.cta-row--center {
  justify-content: 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);
}

.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;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(6, 25, 43, 0.5);
  border-radius: var(--radius);
  border: 1px dashed rgba(79, 209, 197, 0.35);
}

.what-is-mdbs__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.what-is-mdbs__layout > * {
  min-width: 0;
}

.what-is-mdbs__layout .section-intro {
  margin-bottom: 0;
  max-width: none;
}

.who-is-mdbs__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.who-is-mdbs__layout > * {
  min-width: 0;
}

.who-is-mdbs__layout .section-intro {
  margin-bottom: 0;
  max-width: none;
}

#who-is-mdbs .channel-diagram--who-is {
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem 1rem;
  width: 100%;
}

#who-is-mdbs .channel-diagram--who-is .flow-label--diagram-title {
  margin-bottom: 0.65rem;
}

.who-is-mdbs__flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.who-is-mdbs__broker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(110, 231, 183, 0.28) 0%, rgba(45, 212, 191, 0.14) 45%, rgba(6, 45, 42, 0.35) 100%);
  border: 1px solid rgba(110, 231, 183, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(79, 209, 197, 0.2),
    0 4px 22px rgba(45, 212, 191, 0.22);
  min-width: 0;
}

.who-is-mdbs__broker-headline {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(167, 248, 224, 0.45);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8ffe8;
  text-shadow:
    0 0 20px rgba(110, 231, 183, 0.65),
    0 0 40px rgba(45, 212, 191, 0.35);
}

.who-is-mdbs__box {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(42, 155, 196, 0.12);
  border: 1px solid rgba(79, 209, 197, 0.45);
}

.who-is-mdbs__box--admin {
  text-align: center;
}

.who-is-mdbs__box--processor {
  text-align: left;
}

.who-is-mdbs__box-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foam-light);
  margin-bottom: 0.25rem;
}

.who-is-mdbs__box-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.who-is-mdbs__box--processor .who-is-mdbs__box-sub {
  margin-bottom: 0.45rem;
}

.who-is-mdbs__processor-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.who-is-mdbs__processor-list li {
  margin-bottom: 0.2rem;
}

.who-is-mdbs__processor-list li:last-child {
  margin-bottom: 0;
}

.who-is-mdbs__lanes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
}

.who-is-mdbs__lane {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.who-is-mdbs__lane-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.who-is-mdbs__lane--feedback .who-is-mdbs__lane-label {
  color: var(--foam);
}

.who-is-mdbs__lane-svg {
  display: block;
  width: 100%;
  height: 14px;
  min-width: 5rem;
}

@media (min-width: 480px) {
  .who-is-mdbs__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 11rem) minmax(0, 1.25fr);
    align-items: stretch;
    gap: 0.65rem;
  }

  .who-is-mdbs__box--admin,
  .who-is-mdbs__broker,
  .who-is-mdbs__box--processor {
    min-width: 0;
  }

  .who-is-mdbs__box--admin {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
  }

  .who-is-mdbs__box--processor {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .who-is-mdbs__broker {
    align-self: center;
  }
}

@media (min-width: 768px) {
  .who-is-mdbs__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }

  #who-is-mdbs .channel-diagram--who-is {
    justify-self: stretch;
    width: 100%;
  }
}

#what-is-mdbs .channel-diagram--what-is {
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0.85rem;
}

.what-is-mdbs__diagram {
  display: inline-grid;
  justify-items: center;
  max-width: 100%;
}

.flow-label--diagram-title {
  grid-column: 1;
  justify-self: stretch;
}

.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;
}

.flow-label.flow-label--diagram-title {
  margin: 0 0 0.4rem;
}

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

#what-is-mdbs .channel-svg--what-is {
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .what-is-mdbs__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
    align-items: start;
  }

  #what-is-mdbs .channel-diagram--what-is {
    align-items: center;
    justify-self: stretch;
    width: 100%;
  }

  #what-is-mdbs .what-is-mdbs__diagram {
    width: 100%;
  }
}

section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  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;
}

#why > .section-intro,
section.wrap:has(> .legal-strip) > .section-intro {
  max-width: none;
}

.section-intro p {
  margin: 0;
}

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

.section-tight {
  padding-top: 2rem;
  padding-bottom: 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-heading-standalone--center {
  text-align: center;
}

.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;
}

#why .section-why-spacer {
  min-height: 1.5rem;
}

.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;
}

@media (max-width: 767px) {
  .compare-table {
    font-size: 0.78rem;
    min-width: 0;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.55rem 0.5rem;
  }

  .compare-table th:nth-child(2),
  .compare-table td:nth-child(2) {
    display: none;
  }

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

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

.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-top: 2rem;
  padding-bottom: 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;
}

main.page-contact > .section-compare {
  padding-top: 2.5rem;
}

.closing {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.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-top: 2rem;
  padding-bottom: 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;
}

/* Broker — sign in / sign up (index) */
.auth-page {
  padding-top: 1.25rem;
  padding-bottom: 4rem;
}

.auth-page h1 {
  margin-bottom: 0.5rem;
}

.auth-page .lead {
  margin-bottom: 1.75rem;
}

.auth-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 860px) {
  .auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.auth-grid--single {
  max-width: 28rem;
}

.auth-grid--single.auth-grid--wide {
  max-width: min(100%, 42rem);
}

@media (min-width: 860px) {
  .auth-grid.auth-grid--single {
    grid-template-columns: 1fr;
  }
}

.auth-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--foam-light);
  margin-bottom: 1rem;
}

.auth-card .contact-form {
  margin-top: 0;
}

.auth-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-hint a,
.files-library-keys-notice a {
  color: rgba(216, 224, 232, 0.95);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 224, 232, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-hint a:visited,
.files-library-keys-notice a:visited {
  color: rgba(216, 224, 232, 0.95);
}

.auth-hint a:hover,
.files-library-keys-notice a:hover {
  color: var(--foam-light);
  border-bottom-color: rgba(197, 232, 245, 0.45);
}

.contact-form__message--success {
  background: rgba(72, 180, 130, 0.18);
  border-color: rgba(110, 231, 183, 0.45);
}

.files-library-keys-notice {
  margin-bottom: 1.25rem;
}

.files-library-keys-notice__text {
  margin: 0;
  line-height: 1.55;
}

.site-nav__logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.site-nav__link--button {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 0 0.1rem;
}

.site-nav__link--button:hover {
  color: var(--foam);
  border-bottom-color: rgba(197, 232, 245, 0.35);
}

.profile-card__intro code {
  font-size: 0.82em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(6, 25, 43, 0.55);
  border: 1px solid rgba(197, 232, 245, 0.12);
}

.profile-card__token-field {
  margin-top: 1.25rem;
}

.profile-card__token-frame {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(197, 232, 245, 0.2);
  background: rgba(6, 25, 43, 0.45);
  overflow: hidden;
}

.profile-card__token-frame:focus-within {
  border-color: rgba(79, 209, 197, 0.55);
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.15);
}

.profile-card__token-input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.profile-card__token-input:focus {
  border: none;
  box-shadow: none;
}

.profile-card__token-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(197, 232, 245, 0.2);
  border-radius: 0;
  background: rgba(6, 25, 43, 0.35);
  color: var(--foam-light);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-card__token-copy:hover:not(:disabled) {
  background: rgba(79, 209, 197, 0.12);
  color: var(--foam);
}

.profile-card__token-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.profile-card__token-copy-icon {
  display: block;
}

.profile-card__token-copy-status {
  display: block;
  margin-top: 0.5rem;
  color: rgba(79, 209, 197, 0.95);
}

.profile-card__token-copy-status[hidden] {
  display: none !important;
}

.profile-readonly-input {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  cursor: default;
  user-select: all;
}

.profile-inline-action {
  margin-top: 0.75rem;
}

.profile-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0;
}

.profile-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

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

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

.profile-link--disabled {
  color: var(--text-muted);
  border-bottom: none;
  cursor: default;
  font-weight: 400;
}

.profile-link-meta {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
