/* The redesigned site's look (content/site, the draft's site.css) for the app
   pages that are not part of it: the sign-in, invite and checkout-return
   screens, unsubscribe, offers, the region notice and the in-app 404.
   Everything is scoped to .sfx, so a page without that class is unchanged.
   Load /fonts.css beside it for Inter. */
.sfx {
  --sfx-ink: #16131F;
  --sfx-ink-2: #6F6980;
  --sfx-line: rgba(22, 19, 31, 0.08);
  --sfx-brand: #9873F0;
  --sfx-brand-deep: #7650E0;
  --sfx-mist: #F1ECFE;
  --sfx-font: "Inter", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  /* The old stylesheets read these, so everything inside picks up the new face. */
  --sans: var(--sfx-font);
  --display: var(--sfx-font);
  --ink: var(--sfx-ink);
  --ink-2: var(--sfx-ink-2);
  --brand: var(--sfx-brand);
  font-family: var(--sfx-font);
  color: var(--sfx-ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  background: transparent;
}
html:has(.sfx) body { background: #fff; font-family: var(--sfx-font, "Inter", system-ui, sans-serif); }
html:has(.sfx) .masthead,
html:has(.sfx) .cattabs,
html:has(.sfx) .sfoot { display: none !important; }
/* The soft purple wash behind every page of the new site. */
.sfx::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 6% 4%, rgba(152, 115, 240, 0.14), transparent 70vmax),
    radial-gradient(closest-side at 100% 46%, rgba(110, 130, 240, 0.09), transparent 64vmax),
    radial-gradient(closest-side at 40% 108%, rgba(190, 150, 250, 0.12), transparent 60vmax);
}
.sfx h1,
.sfx h2,
.sfx h3 { font-family: var(--sfx-font); font-weight: 600; letter-spacing: -0.035em; color: var(--sfx-ink); text-wrap: balance; }
.sfx p { color: var(--sfx-ink-2); }
.sfx .btn { font-family: var(--sfx-font); }
.sfx .btn-primary {
  background: var(--sfx-brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 26px;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 22px rgba(152, 115, 240, 0.35);
}
.sfx .btn-primary:hover { background: color-mix(in srgb, var(--sfx-brand) 88%, #000); }
.sfx .btn-ghost { border-radius: 999px; font-family: var(--sfx-font); }
.sfx input,
.sfx select,
.sfx textarea { font-family: var(--sfx-font); }
/* The wordmark, as on the site: brand purple, tight. */
.sfx .brand,
.sfx .ck-brand { font-family: var(--sfx-font); font-weight: 600; letter-spacing: -0.025em; color: var(--sfx-brand); }
.sfx .brand svg,
.sfx .ck-brand svg { color: var(--sfx-brand); }
/* The builder's white header bar: transparent on the wash, like the site. */
.sfx header.appnav.mktnav.obh,
.sfx .ck-top { background: transparent; border: 0; box-shadow: none; }
/* The builder card, as the site's glass card. */
.sfx .obform { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--sfx-line); border-radius: 28px; box-shadow: 0 1px 2px rgba(22, 19, 31, 0.04), 0 12px 32px rgba(22, 19, 31, 0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sfx .wiz { background: transparent; border: 0; box-shadow: none; }

/* /app/auth, /app/invite, /app/return. */
.sfx.sfapp-solo { background: transparent; }
.sfx .sf-solo-mark { color: var(--sfx-brand); }
.sfx .sf-solo-h { font-weight: 600; }
.sfx .sf-solo-card .sf-btn { border-radius: 999px; font-weight: 500; }
.sfx .sf-progress { background: var(--sfx-mist); border-radius: 999px; }
.sfx .sf-progress > span { background: var(--sfx-brand); border-radius: 999px; }

/* The in-app 404 (app/not-found.tsx), the same page as content/site/404.html. */
.sfx-404 { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px; text-align: center; }
.sfx-404 .sfx-logo { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; color: var(--sfx-brand); text-decoration: none; }
.sfx-404 .sfx-logo svg { width: 28px; height: 28px; }
.sfx-404 main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 760px; padding-bottom: 8vh; }
.sfx-404 .sfx-crumb { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--sfx-brand-deep); }
.sfx-404 h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; }
.sfx-404 .sfx-intro { margin: 20px auto 0; max-width: 46ch; font-size: 18px; line-height: 1.55; }
.sfx-404 .btn-primary { margin-top: 30px; display: inline-flex; align-items: center; text-decoration: none; }
.sfx-404 ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; }
.sfx-404 ul a { color: var(--sfx-brand-deep); text-decoration: underline; text-decoration-color: rgba(118, 80, 224, 0.3); text-underline-offset: 3px; }
