/* Phone and portrait-tablet navigation. Desktop header rules stay unchanged. */
html:has(> body.cr-site) { --cr-bottom-nav-height: 0px; }
.cr-site:has(#cr-app-menu[open]) { overflow-y: hidden; }
.cr-site:has(#cr-app-menu[open]) .cr-cookie-banner { visibility: hidden; }
.cr-site .cr-app-nav { display: none; }
.cr-site .cr-app-sheet:not([open]),
.cr-site .cr-app-sheet [hidden] { display: none !important; }

.cr-site .cr-app-sheet {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom, 0px));
  width: min(640px, calc(100% - 24px));
  max-width: none;
  max-height: min(82dvh, calc(100dvh - 24px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--cr-line);
  border-radius: 20px;
  background: var(--cr-paper);
  color: var(--cr-ink);
  overflow: hidden;
  box-shadow: 0 20px 70px color-mix(in srgb, var(--cr-ink) 24%, transparent);
}
.cr-app-sheet::backdrop { background: rgb(16 44 64 / 42%); }
.cr-site .cr-app-sheet-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cr-line);
  background: var(--cr-paper);
}
.cr-site .cr-app-sheet-heading h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--cr-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.45px;
  text-align: center;
  text-wrap: initial;
}
.cr-site .cr-app-back,
.cr-site .cr-app-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--cr-sage);
  color: var(--cr-ink);
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.cr-site .cr-app-back { grid-column: 1; grid-row: 1; }
.cr-site .cr-app-close { grid-column: 3; grid-row: 1; }
.cr-site .cr-app-back svg,
.cr-site .cr-app-close svg { width: 20px; height: 20px; }
.cr-site .cr-app-back:hover,
.cr-site .cr-app-close:hover { background: var(--cr-mist); border-color: var(--cr-primary); }
.cr-site .cr-app-sheet-body {
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-padding-block: 12px;
}
.cr-site .cr-app-menu-intro { margin: 0 0 22px; }
.cr-site .cr-app-menu-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--cr-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cr-site .cr-app-menu-intro > p {
  margin: 0;
  color: var(--cr-ink);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.6px;
}
.cr-site .cr-app-menu-list { display: grid; gap: 9px; }
.cr-site .cr-app-menu-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--cr-line);
  border-radius: 11px;
  background: var(--cr-paper);
  color: var(--cr-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
}
.cr-site button.cr-app-menu-row { cursor: pointer; }
.cr-site button.cr-app-menu-row:hover { background: var(--cr-sage); border-color: var(--cr-primary); }
.cr-site .cr-app-menu-row[aria-current="page"] { background: var(--cr-sage); }
.cr-site .cr-app-row-icon {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  color: var(--cr-primary);
}
.cr-site .cr-app-row-copy { display: block; flex: 1; min-width: 0; }
.cr-site .cr-app-row-copy strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.cr-site .cr-app-row-copy > span { display: block; margin-top: 3px; color: var(--cr-muted); font-size: 12px; line-height: 1.55; }
.cr-site .cr-app-row-next { display: inline-flex; flex: 0 0 18px; color: var(--cr-primary); }
.cr-site .cr-app-row-next svg { width: 18px; height: 18px; }
.cr-site .cr-app-current { flex: 0 0 auto; font-size: 10px; font-weight: 600; line-height: 1.4; }
.cr-site .cr-app-auth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--cr-line); }
.cr-site .cr-app-auth > .cr-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}

/* The sheet receives copies of the existing public Product/About menu content. */
.cr-site .cr-app-sheet-body .cr-mega-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; }
.cr-site .cr-app-sheet-body .cr-mega-intro {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 22px;
  border-radius: 12px;
  background: var(--cr-sage);
}
.cr-site .cr-app-sheet-body .cr-mega-eyebrow { display: block; margin: 0 0 10px; color: var(--cr-muted); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .8px; text-transform: uppercase; }
.cr-site .cr-app-sheet-body .cr-mega-title { margin: 0 0 12px; color: var(--cr-ink); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.7px; }
.cr-site .cr-app-sheet-body .cr-mega-title br { display: none; }
.cr-site .cr-app-sheet-body .cr-mega-intro > p:not(.cr-mega-title) { max-width: 460px; margin: 0; color: var(--cr-muted); font-size: 14px; line-height: 1.7; }
.cr-site .cr-app-sheet-body .cr-mega-book,
.cr-site .cr-app-sheet-body .cr-mega-intro-signoff { display: none; }
.cr-site .cr-app-sheet-body .cr-mega-group { min-width: 0; padding: 0; }
.cr-site .cr-app-sheet-body .cr-mega-group-title { margin: 4px 0 12px; color: var(--cr-muted); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .6px; text-transform: uppercase; }
.cr-site .cr-app-sheet-body .cr-mega-link { display: flex; align-items: flex-start; gap: 12px; min-height: 86px; margin: 0 0 9px; padding: 14px 12px; border: 1px solid var(--cr-line); border-radius: 10px; background: var(--cr-paper); color: var(--cr-ink); text-decoration: none; cursor: default; }
.cr-site .cr-app-sheet-body .cr-mega-icon { display: inline-flex; flex: 0 0 25px; justify-content: center; align-items: center; margin-top: 2px; color: var(--cr-primary); }
.cr-site .cr-app-sheet-body .cr-mega-icon svg { display: block; width: 23px; height: 23px; }
.cr-site .cr-app-sheet-body .cr-mega-link-copy { display: block; min-width: 0; }
.cr-site .cr-app-sheet-body .cr-mega-link-copy strong { display: block; margin-bottom: 5px; color: var(--cr-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.cr-site .cr-app-sheet-body .cr-mega-link-copy > span { display: block; color: var(--cr-muted); font-size: 12px; line-height: 1.65; }
.cr-site .cr-app-sheet-body .cr-mega-bottom { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--cr-line); color: var(--cr-muted); font-size: 11px; line-height: 1.6; }
.cr-site .cr-app-sheet-body .cr-mega-bottom > span + span { display: none; }
.cr-site #cr-app-about .cr-mega-layout { grid-template-columns: minmax(0, 1fr); }
.cr-site #cr-app-about .cr-mega-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.cr-site #cr-app-about .cr-mega-group-title { grid-column: 1 / -1; }
.cr-site .cr-app-nav :focus-visible,
.cr-site .cr-app-sheet button:focus-visible { outline: 3px solid var(--cr-focus); outline-offset: 3px; }

@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait) {
  html:has(> body.cr-site) {
    --cr-bottom-nav-height: calc(76px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(max(var(--cr-cookie-space, 0px), var(--cr-bottom-nav-height)) + 18px);
  }
  .cr-site .cr-header .cr-nav,
  .cr-site .cr-header .cr-nav.cr-is-open,
  .cr-site .cr-header .cr-header-actions { display: none !important; }
  .cr-site .cr-header > .cr-shell {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding-block: 10px;
    gap: 0;
  }
  .cr-site .cr-header > .cr-shell > .cr-brand { margin: 0; font-size: 25px; gap: 10px; }
  .cr-site .cr-header > .cr-shell > .cr-brand img.cr-brand-mark { width: 42px; }
  .cr-site .cr-header.cr-is-scrolled > .cr-shell { min-height: 60px; padding-block: 7px; }
  .cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand { font-size: 23px; gap: 9px; }
  .cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand img.cr-brand-mark { width: 36px; }
  .cr-site .cr-app-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1050;
    display: block;
    min-height: var(--cr-bottom-nav-height);
    padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--cr-line);
    background: var(--cr-paper);
    color: var(--cr-ink);
    box-shadow: 0 -5px 20px color-mix(in srgb, var(--cr-ink) 5%, transparent);
  }
  .cr-site .cr-app-nav-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; max-width: 620px; min-height: 75px; margin: 0 auto; padding: 6px 0 5px; }
  .cr-site .cr-app-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 0 3px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--cr-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
  }
  .cr-site button.cr-app-item { cursor: pointer; }
  .cr-site .cr-app-item[aria-disabled="true"] { cursor: default; }
  .cr-site .cr-app-item-icon { display: flex; justify-content: center; align-items: center; width: 48px; height: 33px; border-radius: 18px; color: var(--cr-primary); }
  .cr-site .cr-app-item-icon svg { width: 23px; height: 23px; }
  .cr-site .cr-app-item[aria-current="page"],
  .cr-site .cr-app-item[aria-expanded="true"] { color: var(--cr-ink); font-weight: 700; }
  .cr-site .cr-app-item[aria-current="page"] .cr-app-item-icon,
  .cr-site .cr-app-item[aria-expanded="true"] .cr-app-item-icon { background: var(--cr-sage); }
  .cr-site button.cr-app-item:hover .cr-app-item-icon { background: var(--cr-sage); }
  html[data-cr-mode="enhanced"] .cr-site .cr-app-item[aria-current="page"] .cr-app-item-icon,
  html[data-cr-mode="enhanced"] .cr-site .cr-app-item[aria-expanded="true"] .cr-app-item-icon { background: var(--cr-teal); color: var(--cr-on-primary); }
  body.cr-site:has(dialog[open]) .cr-app-nav { visibility: hidden; }
  .cr-site .cr-cookie-banner {
    bottom: calc(var(--cr-bottom-nav-height) + 12px);
    max-height: min(70dvh, calc(100dvh - 210px - var(--cr-bottom-nav-height)));
  }
  .cr-site .cr-cookie-spacer { height: max(var(--cr-cookie-space, 0px), calc(var(--cr-bottom-nav-height) + 12px)); }
}

@media (max-width: 550px) {
  .cr-site .cr-app-sheet-heading { padding: 12px; gap: 8px; }
  .cr-site .cr-app-sheet-heading h2 { font-size: 20px; }
  .cr-site .cr-app-sheet-body { padding: 20px 16px; }
  .cr-site .cr-app-menu-intro > p { font-size: 23px; }
  .cr-site .cr-app-menu-row { padding: 12px 10px; gap: 9px; }
  .cr-site .cr-app-current { display: none; }
  .cr-site .cr-app-sheet-body .cr-mega-layout,
  .cr-site #cr-app-about .cr-mega-group { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cr-site .cr-app-sheet-body .cr-mega-intro { padding: 20px; }
  .cr-site .cr-app-sheet-body .cr-mega-title { font-size: 27px; }
  .cr-site .cr-app-sheet-body .cr-mega-link { min-height: 76px; }
  .cr-site #cr-app-about .cr-mega-group { row-gap: 0; }
  .cr-site .cr-app-auth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cr-site .cr-app-auth > [data-cr-page="trial"] { grid-column: 1 / -1; }
  .cr-site .cr-app-auth > .cr-button { padding-inline: 10px; font-size: 13px; }
}
@media print { .cr-site .cr-app-nav, .cr-site .cr-app-sheet { display: none !important; } }
