/* ============================================================
   Marketing site — public surface at "/"
   v20260722a
   ============================================================ */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
}

* {
  box-sizing: border-box;
}

/* Author display rules must never override the platform [hidden] contract.
   This is especially important for action buttons after a successful form
   submission, where leaving a visually active control can create duplicates. */
[hidden] {
  display: none !important;
}

.primary-action,
.secondary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  color: #ffffff;
  background: var(--teal-dark);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal);
}

.secondary-action {
  color: var(--teal-dark);
  border-color: #bddcd5;
  background: #eef8f5;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: #dff0ea;
}

.marketing-body {
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  margin: 0;
  line-height: 1.55;
}

.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line, #e5e7eb);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #0f172a);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.marketing-brand img { width: 28px; height: 28px; }
.marketing-nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.marketing-nav-links a {
  color: var(--ink, #0f172a);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.78;
  transition: opacity 120ms ease;
}
.marketing-nav-links a:hover { opacity: 1; }
.marketing-nav-cta { display: flex; gap: 10px; align-items: center; }
.marketing-nav-cta .primary-action,
.marketing-nav-cta .secondary-action {
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14px;
}

.marketing-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 66svh, 650px);
  padding: clamp(52px, 7vw, 88px) clamp(20px, 4vw, 56px);
  color: #ffffff;
  background-image: url("/assets/care-home-common-room.png");
  background-position: center;
  background-size: cover;
}
.marketing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(5, 26, 32, 0.72);
}
.marketing-hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.marketing-hero-copy {
  max-width: 760px;
}
.marketing-hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: #b7eee3;
  margin: 0 0 12px;
}
.marketing-hero-copy h1 {
  max-width: 720px;
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 750;
  letter-spacing: 0;
}
.marketing-hero-copy .lead {
  max-width: 700px;
  margin: 0 0 24px;
  color: #edf7f5;
  font-size: clamp(16px, 1.4vw, 19px);
}
.marketing-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.primary-action.large, .secondary-action.large {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  text-decoration: none;
}
.marketing-hero .primary-action {
  color: #0b5e58;
  background: #ffffff;
}
.marketing-hero .primary-action:hover,
.marketing-hero .primary-action:focus-visible {
  background: #e9f8f4;
}
.marketing-hero .secondary-action {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(5, 26, 32, 0.32);
}
.marketing-hero .secondary-action:hover,
.marketing-hero .secondary-action:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}
.marketing-hero-fineprint {
  font-size: 13px;
  color: #dbe9e7;
  margin: 0;
}

.marketing-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}
.marketing-section--alt {
  background: #f8fafc;
  max-width: none;
}
.marketing-section--alt > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.marketing-section h2 {
  max-width: 850px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 auto 32px;
  text-align: center;
}
.marketing-section-lead {
  font-size: 16px;
  color: #475569;
  max-width: 760px;
  margin: -16px auto 32px;
  text-align: center;
}
.marketing-section-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark, #0f766e);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.marketing-preview {
  padding: 72px clamp(20px, 4vw, 56px);
  background: #f8fafc;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.marketing-preview > * {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}
.marketing-preview-heading h2 {
  margin: 0 auto 32px;
  color: var(--ink, #0f172a);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}
.marketing-preview-heading .marketing-section-lead {
  margin-top: -16px;
}
.marketing-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #073f3a;
  border: 1px solid #b8d8d2;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}
.marketing-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #073f3a;
  object-fit: cover;
}
.marketing-preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid #dbe5e3;
  border-bottom: 1px solid #dbe5e3;
}
.marketing-preview-summary p {
  min-width: 0;
  margin: 0;
  padding: 20px 24px;
}
.marketing-preview-summary p + p {
  border-left: 1px solid #dbe5e3;
}
.marketing-preview-summary strong,
.marketing-preview-summary span {
  display: block;
}
.marketing-preview-summary strong {
  margin-bottom: 4px;
  color: var(--teal-dark, #0f766e);
  font-size: 14px;
}
.marketing-preview-summary span {
  color: #475569;
  font-size: 13.5px;
}
.marketing-video-transcript {
  margin-top: 18px;
  color: #475569;
  font-size: 13.5px;
}
.marketing-video-transcript summary {
  width: fit-content;
  color: var(--teal-dark, #0f766e);
  cursor: pointer;
  font-weight: 700;
}
.marketing-video-transcript p {
  max-width: 880px;
  margin: 12px 0 0;
}

.marketing-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line, #e5e7eb);
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.marketing-capability {
  min-width: 0;
  padding: 28px clamp(20px, 2.4vw, 32px);
}
.marketing-capability + .marketing-capability {
  border-left: 1px solid var(--line, #e5e7eb);
}
.marketing-capability-label {
  margin: 0 0 10px;
  color: var(--teal-dark, #0f766e);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marketing-capability h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
}
.marketing-capability > p:not(.marketing-capability-label) {
  margin: 0;
  color: #475569;
  font-size: 14.5px;
}
.marketing-capability ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 14px;
}
.marketing-capability li {
  position: relative;
  margin-top: 9px;
  padding-left: 16px;
}
.marketing-capability li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--teal, #0d9488);
  content: "•";
  font-weight: 900;
}

.marketing-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 6vw, 76px);
}
.marketing-compliance-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.marketing-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  color: #334155;
}
.marketing-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.marketing-check-list li::before {
  content: "✓";
  color: var(--teal, #0d9488);
  font-weight: 700;
  flex: 0 0 16px;
}

.marketing-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.marketing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line, #e5e7eb);
  font-size: 14px;
  color: var(--muted, #64748b);
  flex-wrap: wrap;
}
.marketing-footer strong { color: var(--ink, #0f172a); margin-right: 8px; }
.marketing-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.marketing-footer a {
  color: var(--ink, #0f172a);
  text-decoration: none;
  opacity: 0.78;
}
.marketing-footer a:hover { opacity: 1; }

/* ============================================================
   Public legal documents (/privacy)
   ============================================================ */
.legal-body {
  background: #f4f7f7;
}

.legal-nav {
  position: static;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-nav-links > a:not(.secondary-action) {
  color: var(--ink, #0f172a);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav-links > a:not(.secondary-action):hover,
.legal-nav-links > a:not(.secondary-action):focus-visible {
  color: var(--teal-dark, #0f766e);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px);
}

.legal-document {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe5e3;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.legal-document-header {
  padding: clamp(32px, 6vw, 64px) clamp(24px, 6vw, 72px) 36px;
  background: linear-gradient(145deg, #f1faf8 0%, #ffffff 72%);
  border-bottom: 1px solid #dbe5e3;
}

.legal-document-header .marketing-section-kicker {
  margin-bottom: 10px;
  text-align: left;
}

.legal-document-header h1 {
  margin: 0;
  color: var(--ink, #0f172a);
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.legal-effective-date {
  margin: 18px 0 0;
  color: #475569;
  font-size: 14px;
}

.legal-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.65;
}

.legal-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  margin: 32px clamp(24px, 6vw, 72px) 8px;
  padding: 18px 20px;
  background: #eef8f5;
  border: 1px solid #cce5df;
  border-radius: 10px;
  font-size: 14px;
}

.legal-contents strong {
  flex-basis: 100%;
  color: var(--ink, #0f172a);
}

.legal-contents a,
.legal-section a {
  color: var(--teal-dark, #0f766e);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section {
  margin: 0 clamp(24px, 6vw, 72px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  scroll-margin-top: 24px;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: #153d3a;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
}

.legal-section p {
  margin: 0;
  color: #334155;
}

.legal-section p + p {
  margin-top: 16px;
}

.legal-section ul {
  margin: 16px 0 0;
  padding-left: 24px;
  color: #334155;
}

.legal-section li + li {
  margin-top: 10px;
}

.legal-contact {
  padding-bottom: 44px;
}

.marketing-contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.marketing-contact-options > div {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid #dce9e4;
  border-radius: 18px;
  background: #fff;
}

.marketing-contact-options a {
  color: #12684e;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.marketing-contact-options .marketing-contact-email {
  font-size: 16px;
  font-weight: 600;
}

.marketing-contact-options span { color: #536b65; }

@media (max-width: 620px) {
  .marketing-contact-options { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .marketing-nav-links { display: none; }
  .marketing-nav {
    gap: 10px;
    padding: 12px 16px;
  }
  .marketing-brand {
    gap: 8px;
    font-size: 16px;
  }
  .marketing-brand img {
    width: 26px;
    height: 26px;
  }
  .marketing-nav-cta {
    gap: 6px;
  }
  .marketing-nav-cta .primary-action,
  .marketing-nav-cta .secondary-action {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
  .marketing-hero {
    min-height: 640px;
    padding-top: 36px;
    padding-bottom: 36px;
    background-position: 58% center;
  }
  .marketing-hero-copy h1 {
    font-size: 38px;
  }
  .marketing-hero-actions {
    align-items: center;
    flex-wrap: nowrap;
  }
  .marketing-hero-actions .primary-action,
  .marketing-hero-actions .secondary-action {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }
  .marketing-preview {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .marketing-preview-heading h2 {
    font-size: 28px;
  }
  .marketing-preview-summary {
    grid-template-columns: 1fr;
  }
  .marketing-preview-summary p {
    padding: 16px 4px;
  }
  .marketing-preview-summary p + p {
    border-top: 1px solid #dbe5e3;
    border-left: 0;
  }
  .marketing-capability-grid {
    grid-template-columns: 1fr;
  }
  .marketing-capability + .marketing-capability {
    border-top: 1px solid var(--line, #e5e7eb);
    border-left: 0;
  }
  .marketing-footer,
  .marketing-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-nav {
    align-items: center;
  }
  .legal-nav-links {
    align-items: center;
    flex-direction: row;
  }
  .legal-main {
    padding: 20px 12px 36px;
  }
  .legal-document-header,
  .legal-section {
    margin-right: 0;
    margin-left: 0;
    padding-right: 20px;
    padding-left: 20px;
  }
  .legal-contents {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* ============================================================
   Login page (/login)
   ============================================================ */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 100%);
}
.login-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}
.login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.login-card .login-sub {
  margin: 0 0 22px;
  color: var(--muted, #64748b);
  font-size: 14px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
/* Multi-facility chooser: radio list of facilities the user can sign into. */
.login-facility-list { display: flex; flex-direction: column; gap: 8px; }
/* Scope under .login-form so this beats the generic `.login-form label`
   (column) rule — the option is a <label> and must lay out as a row. */
.login-form .login-facility-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0f172a);
}
.login-facility-option:hover { background: #f1f5f4; }
.login-facility-option:has(input:checked) {
  background: #eff6ff;
  border-color: #93c5fd;
}
.login-facility-option:has(input:focus-visible) {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
/* Override the global full-width .login-form input rule so the radio sits
   inline to the left of the label instead of stretching across the row. */
.login-facility-option input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal, #0d9488);
}
.login-facility-role {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark, #0f766e);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0f172a);
}
/* UX audit: wrapping the password input inside its <label> caused the
   accessible name to absorb the visible text of the toggle and "Forgot
   password?" buttons ("Password Show password Forgot password?"). The
   markup now uses an explicit <label for=…> inside .login-field; mirror
   the label-stack layout here so visuals match the email row. */
.login-form .login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-form .login-field label {
  display: inline-flex;
  margin: 0;
}
.login-form input {
  padding: 10px 12px;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
}
.login-form input:focus {
  outline: none;
  border-color: var(--teal, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}
.login-form .login-submit {
  margin-top: 6px;
  padding: 11px 16px;
  font-size: 15px;
}
.login-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin: 0;
}
.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  margin: 0 0 22px;
}
.login-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #64748b);
  cursor: pointer;
}
.login-tab.is-active {
  color: var(--teal-dark, #0f766e);
  border-bottom-color: var(--teal, #0d9488);
}
.login-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted, #64748b);
  text-decoration: none;
}
.login-back:hover { color: var(--ink, #0f172a); }
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--ink, #0f172a);
  font-weight: 700;
}
.login-brand img { width: 26px; height: 26px; }

/* ============================================================
   P1 polish — login affordances, marketing trust strip,
   tighter hero type. v20260602p
   ============================================================ */

/* --- Login: password field with show/hide toggle --- */
.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.login-aux-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.login-aux-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark, #0f766e);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.login-aux-link:hover,
.login-aux-link:focus-visible { text-decoration: underline; }
.login-aux-link:focus-visible { outline: 2px solid var(--teal, #0d9488); outline-offset: 2px; border-radius: 4px; }

.login-password-field {
  position: relative;
  display: block;
}
.login-password-field input {
  width: 100%;
  padding-right: 64px;
  box-sizing: border-box;
}
.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal-dark, #0f766e);
  cursor: pointer;
  border-radius: 6px;
}
.login-password-toggle:hover { background: rgba(13, 148, 136, 0.08); }
.login-password-toggle:focus-visible {
  outline: 2px solid var(--teal, #0d9488);
  outline-offset: 1px;
}
.login-hint {
  font-size: 12px;
  color: var(--muted, #64748b);
  font-weight: 400;
}

/* --- Login: trust strip below back-link --- */
.login-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line, #e5e7eb);
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted, #64748b);
}
.login-trust li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-trust-icon {
  flex: 0 0 16px;
  color: var(--teal-dark, #0f766e);
}

/* --- Marketing: hero trust strip --- */
.marketing-trust-strip {
  list-style: none;
  margin: 34px 0 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  color: #dbe9e7;
}
.marketing-trust-strip li {
  min-width: 0;
  padding: 0 24px;
  font-size: 13px;
}
.marketing-trust-strip li:first-child {
  padding-left: 0;
}
.marketing-trust-strip li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.marketing-trust-strip strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}
.marketing-trust-strip span {
  display: block;
}

/* --- Contact modal (Talk to us) v20260602r --- */
.contact-modal[hidden] { display: none !important; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(2px);
}
.contact-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.28);
  width: min(520px, 96vw);
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.contact-modal__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.contact-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.contact-modal__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0b1220;
}
.contact-modal__body {
  padding: 18px 22px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-modal__lead {
  margin: 0 0 4px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.contact-modal__phone {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.contact-modal__phone a {
  color: #12684e;
  font-weight: 700;
}
.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #0b1220;
  font-weight: 600;
}
.contact-modal__field em {
  color: #64748b;
  font-style: normal;
  font-weight: 400;
}
.contact-modal__field input,
.contact-modal__field textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: #0b1220;
  resize: vertical;
}
.contact-modal__field textarea { min-height: 96px; }
.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}
.contact-modal__error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin: 0;
}
.contact-modal__success {
  position: relative;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 18px 18px 18px 52px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  margin: 4px 0 10px;
  font-weight: 600;
}
.contact-modal__success::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background: #15803d;
  font-size: 14px;
  line-height: 1;
}
.contact-modal__body.is-submitted .contact-modal__lead,
.contact-modal__body.is-submitted .contact-modal__field { display: none; }
.contact-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  background: #f8fafc;
}
.contact-modal__footer .primary-action[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.ghost-action {
  appearance: none;
  background: transparent;
  border: 1px solid #d1d5db;
  color: #475569;
  font: inherit;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.ghost-action:hover { background: #f1f5f9; color: #0b1220; }

/* --- Pricing tier grid (P1-3) --- */
.marketing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}
.marketing-pricing-card {
  background: #ffffff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.marketing-pricing-card:hover {
  border-color: var(--teal, #0d9488);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.marketing-pricing-card.is-featured {
  border-color: var(--teal, #0d9488);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.14);
  position: relative;
}
.marketing-pricing-card.is-featured::after {
  content: "Most popular";
  position: absolute;
  top: -10px; right: 16px;
  background: var(--teal, #0d9488);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.marketing-pricing-card header { display: flex; flex-direction: column; gap: 4px; }
.marketing-pricing-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.marketing-pricing-card h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  letter-spacing: 0;
  display: flex; align-items: baseline; gap: 4px;
}
.marketing-pricing-card h3 span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #64748b);
  letter-spacing: 0;
}
.marketing-pricing-card header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #64748b);
}
.marketing-pricing-card ul { padding-left: 0; }
.marketing-pricing-card .primary-action,
.marketing-pricing-card .secondary-action {
  align-self: flex-start;
  margin-top: auto;
}
.marketing-pricing-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--muted, #64748b);
  margin: 6px 0 18px;
}
.marketing-footer-copy {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  margin-left: auto;
}

@media (max-width: 720px) {
  .marketing-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
    padding-top: 16px;
  }
  .marketing-trust-strip li {
    padding: 0 10px;
    text-align: center;
  }
  .marketing-trust-strip li:first-child {
    padding-right: 10px;
  }
  .marketing-trust-strip li + li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }
  .marketing-trust-strip strong {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .marketing-trust-strip span {
    display: none;
  }
  .marketing-footer-copy {
    margin-left: 0;
  }
}

/* Public sign-in/recovery: share the existing inset and dark-surface tokens.
   /login loads marketing.css directly; no authenticated-shell sheet is needed. */
@media screen {
  .login-shell .contact-modal__form {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px 8px;
  }
  .login-shell .contact-modal__form > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
  }
  .login-shell .contact-modal__form > .contact-modal__footer {
    margin: 4px -22px -8px;
    flex-wrap: wrap;
  }
  :root[data-theme="dark"] .login-shell .login-card,
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__panel {
    color: var(--ink, #e5e9f0);
    background: var(--surface, #1a212c);
    border-color: var(--line, #2b3444);
  }
  :root[data-theme="dark"] .login-shell :is(#paneSignIn, #paneSignUp) .login-form label,
  :root[data-theme="dark"] .login-shell :is(#forgotForm, #mfaRecoveryForm) > label,
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .ghost-action {
    color: var(--ink, #e5e9f0);
  }
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__lead,
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__close {
    color: var(--muted, #a7b0c0);
  }
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__header,
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__footer {
    border-color: var(--line, #2b3444);
  }
  :root[data-theme="dark"] .login-shell :is(#mfaRecoveryModal, #forgotModal) .contact-modal__footer {
    background: var(--surface-sunken, #141a23);
  }
  :root[data-theme="dark"] .login-shell .login-tab.is-active,
  :root[data-theme="dark"] .login-shell .login-aux-link,
  :root[data-theme="dark"] .login-shell .login-trust-icon {
    color: #8fddd2;
  }
}

/* Reserve the toggle width and an 8px gap inside the native password editor;
   keep the shared input shorthand from erasing that space. */
@media screen {
  .login-shell .login-password-field input {
    padding-right: 72px !important;
  }
}
