/* Shared storybook shell, legal reading pages and invitation dialog. */
.store-button {
  cursor: pointer;
}
.site-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
}
.site-skip:focus {
  top: 12px;
}
.footer {
  padding-block: 52px 36px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
}
.footer nav a {
  text-decoration: none;
}
.footer .footer-company {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.reading-page {
  max-width: 820px;
  padding-block: 90px 72px;
}
.reading-heading {
  margin-bottom: 48px;
}
.reading-heading h1 {
  margin: 24px 0;
  font-size: clamp(46px, 6vw, 76px);
}
.reading-heading > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 18px;
}
.reading-date {
  font-size: 14px;
}
.reading-prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.reading-prose h2 {
  margin: 42px 0 18px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: left;
}
.reading-prose p {
  margin-bottom: 20px;
}
.reading-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.reading-prose ul {
  padding-left: 24px;
  margin: 20px 0 28px;
}
.reading-prose li {
  margin: 12px 0;
}
.reading-prose a,
.reading-contact a {
  color: var(--violet);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.reading-contact {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.reading-contact p:first-child {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}
.company-details {
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.company-details > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.company-details dt {
  color: var(--ink);
  font-weight: 600;
}
.company-details dd {
  margin: 0;
}
.company-details dd span {
  display: block;
}
.has-beta-dialog {
  overflow: hidden;
}
.beta-dialog {
  margin: auto;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px #29263230;
  overflow-y: auto;
}
.beta-dialog::backdrop {
  background: #29263275;
  backdrop-filter: blur(7px);
}
.beta-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--ink);
  cursor: pointer;
}
.beta-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.beta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.beta-copy h2 {
  font: 400 38px/1.12 var(--display);
  letter-spacing: -0.035em;
  margin: 16px 0;
  text-align: left;
}
.beta-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.beta-copy .beta-small {
  margin-top: 8px;
  font-size: 13px;
}
.beta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  font-family: var(--body);
}
.beta-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.beta-form legend,
.beta-email {
  font-size: 14px;
  font-weight: 600;
}
.beta-form legend {
  margin-bottom: 8px;
}
.beta-platforms {
  display: flex;
  gap: 6px;
  background: var(--lilac);
  padding: 5px;
  border-radius: 14px;
}
.beta-platforms label {
  flex: 1;
  position: relative;
}
.beta-platforms input {
  position: absolute;
  opacity: 0;
}
.beta-platforms span {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}
.beta-platforms input:checked + span {
  background: #6e42d3;
  color: white;
}
.beta-platforms input:focus-visible + span {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.beta-email input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbbbdc;
  border-radius: 12px;
  padding: 13px;
  background: #fffdf9;
  color: var(--ink);
  font: 16px var(--body);
}
.beta-form button[type='submit'] {
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 25px;
  box-shadow: 3px 3px 0 var(--ink);
  background: #6e42d3;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.beta-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.beta-status {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.beta-status:empty {
  display: none;
}
.beta-small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.beta-small a {
  color: var(--violet);
  text-underline-offset: 3px;
}
.beta-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .reading-page {
    padding-block: 48px;
  }
  .reading-heading {
    margin-bottom: 32px;
  }
  .reading-prose {
    font-size: 16px;
  }
  .reading-prose h2 {
    font-size: 28px;
  }
  .company-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .footer nav {
    justify-content: center;
    gap: 18px;
  }
  .footer .footer-company {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .beta-dialog {
    padding: 34px 24px 28px;
  }
  .beta-copy h2 {
    font-size: 32px;
  }
}

.confirmation-page {
  max-width: 680px;
}
.confirmation-page .access-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 12px 0 28px;
  background: #6e42d3;
  color: white;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  border-radius: 28px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}
.access-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-app-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: #6e42d3;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.mobile-app-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-app-button:hover {
  background: #5930b7;
}
@media (max-width: 700px) {
  .store-buttons-compact .store-button {
    display: none;
  }
  .store-buttons-compact .mobile-app-button {
    display: inline-flex;
  }
}

@media (max-width: 360px) {
  .store-buttons:not(.store-buttons-compact) .store-button strong {
    font-size: 14px;
    white-space: nowrap;
  }
  .store-buttons:not(.store-buttons-compact) .store-button small {
    font-size: 9px;
  }
  .store-buttons:not(.store-buttons-compact) .store-logo {
    width: 22px;
  }
}

.use-case-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 22px;
  color: var(--violet);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.use-case-link span {
  font-size: 20px;
}
.footer-use-cases {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.footer-use-cases a {
  text-decoration: none;
}
.footer-use-cases a:hover {
  color: var(--violet);
}
