/* ------------------------------------------------------------------
   The landing page's look, applied to the other public pages (contact,
   sign-in and sign-up, legal texts, status, careers, developers, 404).

   Loaded last on each of those pages, with body.lx-page.  It changes no
   markup and no behaviour: it retunes type, colour, the header and the
   controls so every page reads as the same product as the landing page
   (lime.css).  Keep the tokens below in step with lime.css.
   ------------------------------------------------------------------ */

.lx-page {
  --ink: #0c1211;
  --ink-2: #56625f;
  --ink-3: #87918f;
  --line: rgba(12, 18, 17, 0.08);
  --line-2: rgba(12, 18, 17, 0.13);
  --panel: #f6f8f8;
  --wash: #f0f9fa;
  --tint: #d7f2f4;
  --teal: #0f766e;
  --teal-deep: #115e59;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --sans: 'Darker Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The auth pages read their colours from these. */
  --auth-ink: #0c1211;
  --auth-brand: #0f766e;
  --auth-brand-deep: #115e59;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.lx-page ::selection { background: var(--teal); color: #ffffff; }
.lx-page :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------------------------------------------------------------- */
/* Type: one face, the landing page's weights                        */
/* ---------------------------------------------------------------- */
.lx-page h1,
.lx-page h2,
.lx-page h3,
.lx-page h4,
.lx-page .font-display,
.lx-page .legal-title,
.lx-page .auth-title { font-family: var(--sans) !important; color: var(--ink); }
.lx-page h1,
.lx-page .legal-title,
.lx-page .auth-title { font-weight: 700 !important; letter-spacing: -0.022em !important; line-height: 0.98 !important; text-wrap: balance; }
.lx-page h2,
.lx-page h3 { font-weight: 700 !important; letter-spacing: -0.012em !important; }
.lx-page [class~='text-[#0F172A]'],
.lx-page [class~='text-slate-900'],
.lx-page [class~='text-slate-800'] { color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Header: the landing page's bar                                    */
/* ---------------------------------------------------------------- */
.lx-page .page-header,
.lx-page .auth-header {
  padding: 0 var(--gutter) !important;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
.lx-page .page-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.lx-page .page-header-inner,
.lx-page .auth-header-inner { width: min(100%, 75rem) !important; height: 3.75rem !important; }
.lx-page .page-header-logo,
.lx-page .auth-logo { min-height: 0 !important; }
.lx-page .page-header-logo img,
.lx-page .auth-logo img { width: auto !important; height: 1.625rem !important; }

/* "Kyçu" as the quiet control, "Provo falas" as the small teal button. */
.lx-page .landing-header-action,
.lx-page .site-nav-action {
  display: inline-flex;
  height: 2rem;
  min-height: 0;
  align-items: center;
  gap: 0;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.lx-page .landing-header-action:hover,
.lx-page .site-nav-action:hover { background: rgba(12, 18, 17, 0.05); color: var(--ink); }
.lx-page .landing-header-action.hidden,
.lx-page .landing-header-action[hidden],
.lx-page .site-nav-action[hidden] { display: none; }
.lx-page .landing-header-trial,
.lx-page .site-nav-trial,
.lx-page #myAccountNavLink,
.lx-page .site-nav-action[data-member] {
  background: var(--teal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(15, 60, 58, 0.24);
  color: #ffffff;
}
.lx-page .landing-header-trial:hover,
.lx-page .site-nav-trial:hover,
.lx-page #myAccountNavLink:hover,
.lx-page .site-nav-action[data-member]:hover { background: var(--teal-deep); color: #ffffff; }
.lx-page .landing-header-trial svg,
.lx-page .site-nav-trial svg { display: none; }
.lx-page .site-nav-actions,
.lx-page .page-header-inner > .hidden.lg\:flex { gap: 0.375rem !important; }

/* ---------------------------------------------------------------- */
/* Controls                                                          */
/* ---------------------------------------------------------------- */
.lx-page [class~='bg-[#0F172A]'],
.lx-page [class~='bg-slate-900'] {
  border-radius: 0.625rem !important;
  background: var(--teal) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(15, 60, 58, 0.24);
  color: #ffffff !important;
  font-weight: 600;
}
.lx-page [class~='bg-[#0F172A]']:hover,
.lx-page [class~='bg-slate-900']:hover { background: var(--teal-deep) !important; }
.lx-page:not(.auth-page) input[type='text'],
.lx-page:not(.auth-page) input[type='email'],
.lx-page:not(.auth-page) input[type='password'],
.lx-page:not(.auth-page) textarea,
.lx-page:not(.auth-page) select { border-color: var(--line-2); border-radius: 0.625rem; }
.lx-page .auth-control input:focus,
.lx-page input:focus,
.lx-page textarea:focus,
.lx-page select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tint); outline: none; }
.lx-page a[class*='text-brand-'],
.lx-page .auth-field-link,
.lx-page .auth-switch a { color: var(--teal-deep); }

/* ---------------------------------------------------------------- */
/* The offer strip and the footers                                   */
/* ---------------------------------------------------------------- */
.lx-page .offer-banner { border: 0; background: var(--wash); color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.lx-page .offer-banner strong { color: var(--teal-deep); }
.lx-page footer { border-color: var(--line) !important; background: #ffffff !important; }
.lx-page footer[class*='px-'] { padding-inline: var(--gutter) !important; }
.lx-page footer > .max-w-7xl { max-width: 75rem; }
.lx-page .auth-footer { padding-inline: var(--gutter); color: var(--ink-3); }
.lx-page .auth-footer-inner { width: min(100%, 75rem); }
.lx-page .auth-footer,
.lx-page .auth-footer p,
.lx-page .auth-footer span,
.lx-page .auth-footer a { color: var(--ink-3); font-size: 0.9375rem; font-weight: 500; }
/* The large footer of the contact, status and legal pages, set like the landing page's. */
.lx-page footer [class*='font-mono'][class*='tracking-'] { margin-bottom: 0.75rem; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; text-transform: lowercase; }
.lx-page footer [class*='font-mono'][class*='tracking-']::first-letter { text-transform: uppercase; }
.lx-page footer .footer-link,
.lx-page footer p:not([class*='font-mono']) { color: var(--ink-2); font-size: 1.0625rem; font-weight: 500; }
.lx-page footer .footer-link:hover { color: var(--ink); }

/* Darker Grotesque is too thin at its light weights for running text. */
.lx-page [class*='font-light'],
.lx-page [class*='font-extralight'],
.lx-page [class*='font-thin'] { font-weight: 500; }

/* ---------------------------------------------------------------- */
/* Sign-in, sign-up and password pages.  These keep the light,       */
/* compact form they always had (auth.css): a medium-weight title,   */
/* a plain text link in the header, their own field and button       */
/* geometry.  Only the face, the near-black and the teal action      */
/* follow the site.                                                  */
/* ---------------------------------------------------------------- */
.lx-page .auth-title-block h1 { font-size: clamp(1.875rem, 1.6rem + 1.1vw, 2.25rem); font-weight: 500 !important; letter-spacing: -0.02em !important; line-height: 1.12 !important; }
.lx-page .auth-title-block p { color: var(--ink-2); font-size: 1.0625rem; }
.lx-page .auth-header-action { color: var(--ink); font-size: 1.0625rem; font-weight: 600; transition: color 180ms ease; }
.lx-page .auth-header-action:hover { color: var(--teal-deep); }
.lx-page .auth-submit { background: var(--teal); font-size: 1.0625rem; }
.lx-page .auth-submit:hover { background: var(--teal-deep); }
.lx-page .auth-control input:hover { border-color: #b9c6c4; }

/* The Yahoo option sits as quietly as the Microsoft one: same border, no glow. */
.lx-page .auth-provider-button.yahoo { border-color: var(--auth-border); box-shadow: none; color: var(--ink); }
.lx-page .auth-provider-button.yahoo:hover { border-color: #adb8c4; background: #f8fafc; }

/* ---------------------------------------------------------------- */
/* Sign-up on a wide screen.  The page must fit the window without   */
/* scrolling, and one tall column left no air above or below it.     */
/* So the page opens sideways instead: the title and the one-click   */
/* options on the left, the form on the right, and "ose" on the line */
/* between them.  Narrow screens, and the page once the account is   */
/* created (the form is hidden then), keep the single column.        */
/* ---------------------------------------------------------------- */
@media (min-width: 62rem) and (min-height: 34rem) {
  .lx-page.auth-signup .auth-workspace { width: min(100%, 58rem); }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) {
    --split-gap: clamp(4rem, 9vw, 7rem);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 25rem;
    grid-template-rows: auto 1fr auto auto auto 1fr;
    column-gap: var(--split-gap);
  }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-banner { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 1; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-title-block { grid-column: 1; grid-row: 3; margin-bottom: 2rem; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-title-block h1 { font-size: clamp(2.25rem, 1.5rem + 1.7vw, 2.875rem); line-height: 1.06 !important; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-title-block p { margin-top: 0.75rem; font-size: 1.1875rem; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-provider-options { grid-column: 1; grid-row: 4; max-width: 22rem; margin-top: 0; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-switch { grid-column: 1; grid-row: 5; margin-top: 1.25rem; text-align: left; }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) > .auth-form { grid-column: 2; grid-row: 2 / -1; align-self: center; }
  /* "ose" moves from between the stacked blocks to the line between the two columns. */
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) .auth-provider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - 25rem - var(--split-gap) / 2);
    flex-direction: column;
    transform: translateX(-50%);
  }
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) .auth-provider-divider::before,
  .lx-page.auth-signup .auth-form-wrap:not(:has(#registerForm.hidden)) .auth-provider-divider::after { width: 1px; height: auto; }
}
