/* Try before you sign up (TryController): the languages, a language's guest texts, the reader's sign-up sheet,
   end card and AI notice. */
.try { max-width: 920px; padding-block: 40px 64px; }
.try__head { margin-bottom: 24px; }
.try__title { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 4px 0 10px; }
.try__lead { font-size: 17px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; margin: 0; }
.try__languages, .try__texts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
                               grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.try__language, .try__text { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--ink); text-decoration: none; height: 100%;
                             border: 1px solid var(--line); transition: border-color .15s ease; }
.try__language:hover, .try__text:hover { border-color: var(--ink); }
.try__text.is-chosen { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.try__language-name { font-size: 20px; font-weight: 600; }
.try__language-go, .try__text-go { margin-top: auto; color: var(--clay); font-weight: 600; font-size: 14px; }
.try__text .level-pill { align-self: flex-start; }
.try__text-native { font-size: 20px; }
.try__text-title { font-size: 22px; line-height: 1.2; }
.try__text-about { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.try__account { margin-top: 28px; color: var(--text-muted); }
.try--limit { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* The sign-up sheet: a dialog, centered on a wide screen, a bottom sheet on a phone */
.guest-sheet { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--ink);
               box-shadow: 0 30px 60px -20px rgba(28, 35, 33, .6); }
.guest-sheet::backdrop { background: rgba(28, 35, 33, .42); }
.guest-sheet__body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 22px; }
.guest-sheet__close { position: absolute; top: 10px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0; background: none;
                      font-size: 24px; line-height: 1; color: var(--text-muted); cursor: pointer; border-radius: 50%; }
.guest-sheet__close:hover { background: var(--sand); color: var(--ink); }
.guest-sheet__title { font-size: 26px; line-height: 1.15; margin: 0; padding-inline-end: 32px; }
.guest-sheet__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.guest-sheet__more { margin: 0; font-size: 14px; text-align: center; }
.guest-sheet .auth__email-link { margin-top: 0; }
@media (max-width: 600px) {
  .guest-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .guest-sheet__body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}

/* The end of a guest text */
.guest-end { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 22px; border: 1px solid var(--clay-soft); }
.guest-end__title { font-size: 24px; margin: 0; }
.guest-end__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--text-muted); }
.guest-end__stats strong { color: var(--ink); font-size: 18px; }
.guest-end__text { margin: 0; line-height: 1.5; }

/* The AI notice before a guest's question */
.reader__guest-consent { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.reader__guest-consent input { margin-top: 3px; flex-shrink: 0; }

/* The reader in the site's public layout (a guest text): the gutters the app's shell gives it elsewhere */
.reader--guest { width: min(100% - 32px, 1240px); margin: 8px auto 56px; }
@media (min-width: 900px) { .reader--guest { width: min(100% - 64px, 1240px); } }
