/* CareSync public experience: final responsive and brand-quality layer. */
:root { --navy: #063b79; --navy-dark: #052b5a; --teal: #00aa91; --cyan: #12a9ed; --ink: #10243b; --soft: #f2f8fb; }
body { overflow-x: hidden; }
.site-header, .public-header { box-shadow: 0 8px 30px rgba(5,43,90,.045); }
.marketing-hero { isolation: isolate; }
.marketing-hero::after { content: ""; position: absolute; left: -180px; bottom: 20px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0,170,145,.09), transparent 68%); z-index: -1; }
.product-preview { position: relative; overflow: hidden; }
.product-preview::before { content: "LIVE WORKSPACE"; position: absolute; right: 18px; bottom: 10px; color: rgba(5,59,121,.12); font-size: 10px; font-weight: 900; letter-spacing: .16em; }

.connected-platform { max-width: 1240px; margin: 80px auto 40px; padding: 70px clamp(24px,5vw,76px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; border-radius: 32px; background: linear-gradient(145deg,#f5fbfd,#eef9f7); border: 1px solid #d8e9ef; }
.connected-copy h2 { margin: 0 0 18px; color: var(--navy-dark); font-size: clamp(34px,4vw,52px); line-height: 1.08; letter-spacing: -.045em; }
.connected-copy p { margin: 0 0 27px; color: #607087; font-size: 17px; }
.module-orbit { position: relative; min-height: 430px; display: grid; place-items: center; }
.module-orbit::before, .module-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(0,170,145,.3); border-radius: 50%; }
.module-orbit::before { width: 365px; height: 365px; }
.module-orbit::after { width: 245px; height: 245px; }
.orbit-core { position: relative; z-index: 2; width: 154px; height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #cfe4eb; box-shadow: 0 24px 55px rgba(5,59,121,.13); }
.orbit-core img { width: 50px; height: 50px; object-fit: contain; }
.orbit-core strong { margin-top: 7px; color: var(--navy); }
.orbit-core small { color: #708094; font-size: 10px; }
.orbit-item { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid #d4e5ec; color: #234861; font-size: 12px; font-weight: 800; box-shadow: 0 12px 30px rgba(5,59,121,.08); }
.orbit-item::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--teal); }
.item-1 { top: 22px; left: 42%; }.item-2 { top: 94px; right: 4px; }.item-3 { right: 14px; bottom: 90px; }.item-4 { bottom: 18px; left: 38%; }.item-5 { left: 0; bottom: 100px; }.item-6 { left: 6px; top: 92px; }
.outcome-band { max-width: 1240px; margin: 0 auto 40px; padding: 0 24px; display: grid; grid-template-columns: repeat(4,1fr); }
.outcome-band article { padding: 26px; border-top: 1px solid #dce7ee; border-bottom: 1px solid #dce7ee; border-right: 1px solid #dce7ee; }
.outcome-band article:first-child { border-left: 1px solid #dce7ee; border-radius: 18px 0 0 18px; }
.outcome-band article:last-child { border-radius: 0 18px 18px 0; }
.outcome-band span { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.outcome-band b { display: block; margin: 11px 0 7px; color: var(--navy-dark); }
.outcome-band p { margin: 0; color: #607087; font-size: 12px; }
.documentation-guide > aside { max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.guide-content code { padding: 2px 6px; border-radius: 6px; background: #edf5f8; color: #07406f; font-size: .92em; }

/* Trial: the fieldset is the form section and must span the complete card. */
.trial-page { min-height: 100vh; background: linear-gradient(145deg,#eef8fb,#f6fbfa); }
.trial-shell { width: min(1240px,100%); max-width: 1240px; grid-template-columns: minmax(300px,.78fr) minmax(560px,1.22fr); gap: clamp(42px,6vw,86px); padding: 0 28px; }
.trial-intro h1 { max-width: 560px; color: var(--navy-dark); }
.trial-card { min-width: 0; width: 100%; padding: clamp(28px,3vw,42px); border-radius: 24px; }
.trial-form { display: block; width: 100%; }
.trial-form > input[type="hidden"] { display: none; }
.trial-form > fieldset { grid-column: 1 / -1; width: 100%; min-width: 0; }
.trial-form fieldset { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.trial-form fieldset > label, .trial-form fieldset > div { min-width: 0; }
.trial-form input, .trial-form select { min-width: 0; min-height: 48px; font-size: 15px; }
.trial-form fieldset > legend { font-size: 26px; color: var(--navy-dark); }
.trial-form fieldset > p { font-size: 14px; }
.step-progress { margin-bottom: 32px; }
.step-progress button { min-width: 0; }
.step-actions { margin-top: 16px; }
.step-actions .button { min-width: 122px; }

@media (max-width: 980px) {
  .connected-platform { margin: 50px 20px 30px; grid-template-columns: 1fr; }
  .module-orbit { min-height: 390px; }
  .outcome-band { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .outcome-band article, .outcome-band article:first-child, .outcome-band article:last-child { border: 1px solid #dce7ee; border-radius: 16px; }
  .trial-shell { grid-template-columns: 1fr; max-width: 820px; }
  .trial-intro { position: static; text-align: center; }
  .trial-intro h1, .trial-intro p { margin-left: auto; margin-right: auto; }
  .trial-benefits { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
}

@media (max-width: 680px) {
  .connected-platform { margin: 34px 14px; padding: 38px 22px; gap: 24px; }
  .module-orbit { min-height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .module-orbit::before, .module-orbit::after { display: none; }
  .orbit-core { grid-column: 1/-1; width: 130px; height: 130px; margin-bottom: 8px; }
  .orbit-item { position: static; text-align: center; }
  .outcome-band { grid-template-columns: 1fr; padding: 0 14px; }
  .trial-shell { margin: 28px auto; padding: 0 14px; }
  .trial-card { padding: 22px 18px; }
  .trial-form fieldset { grid-template-columns: 1fr; }
  .trial-benefits { grid-template-columns: 1fr; }
  .step-progress { gap: 3px; }
  .step-progress button { font-size: 9px; }
  .step-actions { position: sticky; bottom: 0; z-index: 3; margin: 14px -2px -2px; padding: 12px 2px 2px; background: #fff; }
}

/* Trial form feedback */
.trial-card .form-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
}
.trial-card .form-alert strong { font-size: 14px; }
.trial-card .form-alert span { line-height: 1.5; }
.trial-form button[disabled] { cursor: wait; opacity: .72; }

/* Final trial typography */
body, button, input, select, textarea {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}
.trial-intro h1 {
  font-size: clamp(36px, 4.3vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.trial-intro p { font-size: 16px; }
.public-header nav a { font-size: 14px; font-weight: 700; }
@media (max-width: 620px) {
  .trial-intro h1 { font-size: 34px; }
}

/* ================================================================
   2026-09-03 Free Trial UX refinement
   Uses the existing secure provisioning flow; presentation only.
================================================================ */
.trial-page {
  color: #10243b;
  background:
    radial-gradient(circle at 12% 8%, rgba(18,169,237,.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(0,170,145,.08), transparent 26%),
    linear-gradient(180deg, #f7fbfd 0%, #edf7f8 100%);
}

.trial-public-header {
  height: 74px;
  padding-left: max(24px, calc((100vw - 1220px) / 2));
  padding-right: max(24px, calc((100vw - 1220px) / 2));
  border-bottom-color: #dce8ed;
}

.trial-public-header .brand-logo img {
  width: 154px;
}

.trial-public-header nav {
  gap: 22px;
}

.trial-public-header nav a {
  color: #28455d;
  font-size: 14px;
  font-weight: 700;
}

.trial-shell {
  width: min(calc(100% - 48px), 1220px);
  max-width: 1220px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 54px 0 72px;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(46px, 6vw, 86px);
  align-items: start;
}

.trial-intro {
  top: 112px;
  padding-top: 10px;
}

.trial-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #cce9e6;
  border-radius: 999px;
  background: #f4fffd;
  color: #087d76;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.trial-intro h1 {
  max-width: 520px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.trial-intro > p {
  max-width: 525px;
  margin: 0;
  color: #63778a;
  font-size: 16px;
  line-height: 1.7;
}

.trial-benefits {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}

.trial-benefits li {
  position: relative;
  min-height: 118px;
  padding: 17px 16px 16px 44px;
  border: 1px solid #d8e8ed;
  border-radius: 15px;
  background: rgba(255,255,255,.76);
}

.trial-benefits li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3f7f3;
  color: #068473;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.trial-benefits strong,
.trial-benefits span {
  display: block;
}

.trial-benefits strong {
  color: #0b355d;
  font-size: 13px;
}

.trial-benefits span {
  margin-top: 5px;
  color: #6d7e8d;
  font-size: 11px;
  line-height: 1.5;
}

.trial-help-card {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #d7e7ec;
  border-radius: 15px;
  background: #ffffff;
}

.trial-help-card > span,
.trial-help-card > strong {
  display: block;
}

.trial-help-card > span {
  color: #748594;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.trial-help-card > strong {
  margin-top: 3px;
  color: #0b355d;
  font-size: 14px;
}

.trial-help-card p {
  margin: 6px 0 0;
  color: #667a8d;
  font-size: 12px;
}

.trial-help-card a {
  color: #078a7e;
  font-weight: 700;
}

.trial-card {
  overflow: visible;
  padding: clamp(30px, 3.2vw, 42px);
  border-color: #d6e6ec;
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(6,59,121,.11);
}

.trial-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e1ebef;
}

.trial-card-head span,
.trial-card-head strong {
  display: block;
}

.trial-card-head span {
  color: #078a7e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trial-card-head strong {
  margin-top: 4px;
  color: #0b355d;
  font-size: 18px;
}

.trial-card-head small {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf9f7;
  color: #087b70;
  font-size: 11px;
  font-weight: 700;
}

.step-progress {
  position: relative;
  gap: 0;
  margin: 0 0 32px;
}

.step-progress::before {
  position: absolute;
  top: 15px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: #d9e5ea;
  content: "";
}

.step-progress button {
  position: relative;
  z-index: 1;
  color: #748493;
  font-size: 10px;
  font-weight: 700;
}

.step-progress button span {
  width: 32px;
  height: 32px;
  border-color: #cfdee4;
  box-shadow: 0 0 0 5px #fff;
}

.step-progress button.is-current span,
.step-progress button.is-complete span {
  border-color: #00a991;
  background: linear-gradient(135deg, #0b6090, #00aa91);
}

.step-progress button.is-current {
  color: #0b355d;
}

.trial-form fieldset {
  gap: 18px;
}

.trial-form fieldset > legend {
  margin-bottom: 2px;
  color: #092f55;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.trial-form fieldset > p {
  margin: -4px 0 8px;
  color: #6b7c8b;
  font-size: 13px;
}

.trial-form label {
  gap: 7px;
  color: #29465e;
  font-size: 13px;
  font-weight: 700;
}

.trial-form input,
.trial-form select {
  min-height: 49px;
  padding: 11px 13px;
  border-color: #cddce2;
  border-radius: 10px;
  background: #fbfdfe;
  color: #17364f;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.trial-form input:hover,
.trial-form select:hover {
  border-color: #abc6d0;
  background: #fff;
}

.trial-form input:focus,
.trial-form select:focus {
  border-color: #13a595;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,170,145,.09);
  outline: 0;
}

.trial-form small {
  color: #7a8996;
  font-size: 11px;
  line-height: 1.45;
}

.trial-module-fieldset {
  padding: 17px;
  border-color: #d4e4e9;
  border-radius: 14px;
  background: #f8fbfc;
}

.trial-module-fieldset > strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #29465e;
  font-size: 13px;
}

.trial-module-fieldset > strong small {
  color: #8695a1;
  font-size: 10px;
  font-weight: 500;
}

.trial-module-fieldset > div {
  margin-top: 13px;
  gap: 10px;
}

.trial-module-fieldset .consent {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dde8ec;
  border-radius: 10px;
  background: #fff;
}

.trial-module-fieldset .consent:has(input:checked) {
  border-color: #9fd7cf;
  background: #f1fbf9;
}

.trial-form .consent input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: #00a991;
}

.trial-terms {
  margin-top: 2px;
  padding: 12px 13px;
  border: 1px solid #dbe7eb;
  border-radius: 11px;
  background: #f8fbfc;
}

.trial-terms a {
  color: #078a7e;
  font-weight: 800;
}

.step-actions {
  align-items: center;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid #e5edef;
}

.step-actions .button {
  min-height: 46px;
  min-width: 128px;
  border-radius: 10px;
  font-size: 13px;
}

.trial-card .form-alert {
  margin: -6px 0 24px;
  border: 1px solid #f0c8c4;
  background: #fff7f6;
  color: #8a2c25;
}

.trial-footer {
  width: min(calc(100% - 48px), 1220px);
  max-width: 1220px;
  min-height: 64px;
  align-items: center;
  padding-inline: 0;
  font-size: 12px;
}

.trial-footer a {
  color: #078a7e;
  font-weight: 700;
}

@media (max-width: 980px) {
  .trial-shell {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 820px);
    padding-top: 40px;
  }

  .trial-intro {
    text-align: left;
  }

  .trial-intro h1,
  .trial-intro > p {
    margin-left: 0;
    margin-right: 0;
  }

  .trial-benefits {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .trial-public-header {
    height: 66px;
    padding-inline: 16px;
  }

  .trial-public-header .brand-logo img {
    width: 142px;
  }

  .trial-shell {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 30px 0 48px;
    gap: 26px;
  }

  .trial-intro h1 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .trial-benefits {
    grid-template-columns: 1fr;
  }

  .trial-benefits li {
    min-height: 0;
  }

  .trial-card {
    padding: 22px 18px;
    border-radius: 17px;
  }

  .trial-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .trial-form fieldset {
    grid-template-columns: 1fr;
  }

  .step-progress::before {
    left: 10%;
    right: 10%;
  }

  .step-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 12px -4px -4px;
    padding: 12px 4px 4px;
    background: #fff;
  }

  .step-actions .button {
    flex: 1;
    min-width: 0;
  }

  .trial-footer {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* Release 14 trial scroll/dropdown hardening. */
html:has(body.trial-page),
body.trial-page { min-height: 100%; overflow-x: hidden; overflow-y: auto !important; }
body.trial-page { height: auto !important; max-height: none !important; }
.trial-shell { min-height: auto !important; overflow: visible !important; }
.trial-card, .trial-form, .trial-form fieldset { overflow: visible !important; }
.trial-card .searchable-select-listbox { z-index: 1000; max-height: min(280px, 45vh); }
@media (max-width:680px) {
  .trial-page { -webkit-overflow-scrolling: touch; }
  .trial-shell { padding-bottom: 84px; }
}
