/* EVERJUST.APP theme — layers on Bootstrap 5.3 (vendored).
 * Black & white brand: ink on paper, one bold typographic signature,
 * Lucide stroke icons, mobile-first. */

:root {
  --ej-ink: #000;
  --ej-paper: #fff;
  --ej-muted: #555;
  --ej-faint: #8a8a8a;
  --ej-hairline: #e7e7e7;
  --ej-soft: #fafafa;

  /* Bootstrap variable overrides */
  --bs-body-color: #111;
  --bs-body-bg: var(--ej-paper);
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, Helvetica, Arial, sans-serif;
  --bs-border-color: var(--ej-hairline);
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .75rem;
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-primary: #000;
  --bs-primary-rgb: 0, 0, 0;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Nothing should ever scroll the page sideways. clip (not hidden) avoids
 * establishing a scroll container that would break position: sticky. */
html, body { overflow-x: clip; max-width: 100%; }

/* Anchored sections (e.g. /#pricing) must not scroll under the sticky header. */
section[id] { scroll-margin-top: 72px; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

main { flex: 1; }

/* Global overflow safety: long tokens (workspace URLs, emails) must
 * wrap instead of spilling out of their container. */
h1, h2, h3, p, li, .card, .alert { overflow-wrap: break-word; }
.text-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.min-w-0 { min-width: 0; }

/* ── Icons ────────────────────────────────────────────── */

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lucide {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ── Buttons (black & white system) ───────────────────── */

.btn { font-weight: 700; white-space: nowrap; }

.btn-primary {
  --bs-btn-bg: #000;
  --bs-btn-border-color: #000;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #2a2a2a;
  --bs-btn-hover-border-color: #2a2a2a;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #333;
  --bs-btn-active-border-color: #333;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #777;
  --bs-btn-disabled-border-color: #777;
  --bs-btn-disabled-color: #fff;
}

.btn-outline-dark {
  --bs-btn-color: #000;
  --bs-btn-border-color: #000;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
}

.btn-lg { padding: .8rem 1.5rem; }

.btn:focus-visible,
.form-control:focus,
a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: none;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ej-hairline);
  /* Keep content clear of the notch in installed/standalone mode. */
  padding-top: env(safe-area-inset-top);
}

.site-header .navbar {
  min-height: 60px;
  flex-wrap: nowrap;          /* never let the actions wrap below the bar */
  gap: .75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-word {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: #000;
  line-height: 1;
}

.brand-dot { color: var(--ej-faint); font-weight: 700; }

.brand-logo:hover .brand-dot { color: #000; }

.site-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.site-actions .btn { font-size: .875rem; padding: .45rem .9rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ej-hairline);
  border-radius: .5rem;
  background: #fff;
  color: #000;
  flex-shrink: 0;
}

.menu-toggle:hover { border-color: #000; }

@media (max-width: 420px) {
  .site-actions { gap: .4rem; }
  .site-actions .btn { font-size: .8125rem; padding: .4rem .7rem; }
}

/* ── Bottom tab bar (app-style mobile navigation) ─────── */

.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1035;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ej-hairline);
  padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 52px;
  border: 0;
  background: none;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ej-faint);
  text-decoration: none;
  border-radius: .6rem;
  -webkit-tap-highlight-color: transparent;
}

.tab-item .lucide { transition: transform .12s ease; }
.tab-item:active .lucide { transform: scale(.88); }
.tab-item.active { color: #000; }
.tab-item.active .lucide { stroke-width: 2.4; }

/* Raised center action — the one bold element in the bar. */
.tab-cta { color: #000; }

.tab-cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.tab-cta:active .tab-cta-circle { transform: scale(.94); }

/* Reserve room for the tab bar so content never hides behind it. */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ── Bottom sheet menu ────────────────────────────────── */

.menu-sheet {
  --bs-offcanvas-height: auto;
  max-height: 88dvh;
  border: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .16);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 0 .5rem env(safe-area-inset-bottom);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d8d8d8;
  margin: .7rem auto .2rem;
}

.menu-sheet .offcanvas-header { padding: .25rem 1rem .5rem; }

.sheet-title {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ej-faint);
}

.menu-sheet .offcanvas-body { padding: .25rem 1rem 1.25rem; }

.sheet-list { display: flex; flex-direction: column; margin-bottom: 1.25rem; }

.sheet-list a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem .25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid var(--ej-hairline);
  -webkit-tap-highlight-color: transparent;
}

.sheet-list a:last-child { border-bottom: 0; }
.sheet-list a .lucide:first-child { color: var(--ej-muted); }
.sheet-list a .ms-auto { color: var(--ej-faint); }
.sheet-list a:active { color: var(--ej-muted); }

.nav-link-plain {
  color: var(--ej-muted);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: .375rem;
}

.nav-link-plain:hover { color: #000; background: var(--ej-soft); }

/* ── Hero (the typographic signature) ─────────────────── */

.hero { padding: 4.5rem 0 3rem; text-align: center; }

@media (max-width: 575.98px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero-mock { margin-top: 2.25rem; }
  .mock-grid { grid-template-columns: repeat(3, 1fr); padding: 1.1rem; gap: .85rem; }
}

/* Comfortable side gutters on phones; roomier on larger screens. */
@media (max-width: 575.98px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Hero actions stack into full-width, thumb-friendly buttons. */
  .hero .hero-cta { flex-direction: column; }
  .hero .hero-cta .btn { width: 100%; }
}

.hero h1 {
  font-size: clamp(2.15rem, 6.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 17ch;
  margin: 0 auto 1.1rem;
}

.hero .lede {
  font-size: clamp(1.0625rem, 2.3vw, 1.1875rem);
  color: var(--ej-muted);
  max-width: 54ch;
  line-height: 1.55;
  margin: 0 auto 1.75rem;
}

/* Browser-frame product mock */
.hero-mock {
  margin: 3rem auto 0;
  max-width: 860px;
  border: 1px solid #000;
  border-radius: .875rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  text-align: left;
}

.hero-mock .bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--ej-hairline);
  background: var(--ej-soft);
}

.hero-mock .dot { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; flex-shrink: 0; }

.hero-mock .urlbox {
  flex: 1;
  min-width: 0;
  margin-left: .35rem;
  font-size: .75rem;
  color: var(--ej-muted);
  background: #fff;
  border: 1px solid var(--ej-hairline);
  border-radius: .375rem;
  padding: .25rem .6rem;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-mock .urlbox b { color: #000; }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: .9rem;
  padding: 1.5rem;
}

.mock-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .71875rem;
  font-weight: 600;
  color: var(--ej-muted);
  text-align: center;
  min-width: 0;
}

.mock-app .tile {
  width: 52px;
  height: 52px;
  border: 1px solid #000;
  border-radius: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
}

/* Trust strip: icon chips under the hero CTAs. */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ej-muted);
  border: 1px solid var(--ej-hairline);
  border-radius: 999px;
  background: #fff;
  padding: .4rem .8rem;
  white-space: nowrap;
}

.hero-points li .lucide { color: #000; }

/* ── Sections ─────────────────────────────────────────── */

.section { padding: clamp(3rem, 8vw, 4.5rem) 0; }

/* Eyebrow: small labelled divider above each section heading. */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ej-faint);
  margin-bottom: .9rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  border-top: 1px solid var(--ej-hairline);
}

.section-alt {
  background: var(--ej-soft);
  border-top: 1px solid var(--ej-hairline);
  border-bottom: 1px solid var(--ej-hairline);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -.02em;
  font-weight: 800;
  text-align: center;
  margin-bottom: .6rem;
}

.section .section-lede {
  text-align: center;
  color: var(--ej-muted);
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.feature-card {
  height: 100%;
  border: 1px solid var(--ej-hairline);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}

.feature-card .icon-tile {
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .4rem; letter-spacing: -.01em; }
.feature-card p { font-size: .9375rem; color: var(--ej-muted); margin: 0; line-height: 1.55; }

/* Numbered steps */
.step-card {
  height: 100%;
  border: 1px solid var(--ej-hairline);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.375rem;
  background: #fff;
}

.step-card .step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: .875rem;
  margin-bottom: .75rem;
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-card p { font-size: .875rem; color: var(--ej-muted); margin: 0; }

/* On phones, steps become a connected vertical timeline. */
@media (max-width: 767.98px) {
  .steps-timeline { position: relative; }
  .steps-timeline > [class*="col-"] { padding-bottom: 0; }

  .steps-timeline .step-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    position: relative;
    padding: 0 0 1.6rem 3rem;
  }

  .steps-timeline .step-card .step-n {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  /* Connector line between the numbered dots. */
  .steps-timeline .step-card::before {
    content: "";
    position: absolute;
    left: 14.5px;
    top: 34px;
    bottom: .35rem;
    border-left: 2px solid var(--ej-hairline);
  }

  .steps-timeline > div:last-child .step-card::before { display: none; }
  .steps-timeline > div:last-child .step-card { padding-bottom: 0; }
}

/* Card rows stack cleanly on phones — no horizontal scroll, no overflow.
 * (.cards-snap is a historical hook kept so templates need no churn.) */
.rail-hint { display: none; }

/* Pricing */
.price-card {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #000;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  text-align: center;
}

.price-card .amount { font-size: 3.25rem; font-weight: 800; letter-spacing: -.04em; }
.price-card .amount span { font-size: 1.0625rem; font-weight: 600; color: var(--ej-muted); letter-spacing: 0; }

.check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; text-align: left; font-size: .90625rem; }

.check-list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .55rem 0;
  border-bottom: 1px solid var(--ej-hairline);
  min-width: 0;
}

.check-list li:last-child { border-bottom: 0; }
.check-list .lucide { margin-top: .15em; }

/* FAQ — native <details>, no JS */
.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--ej-hairline);
  border-radius: var(--bs-border-radius-lg);
  padding: 0 1.125rem;
  margin-bottom: .6rem;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .9375rem;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--ej-faint); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--ej-muted); font-size: .90625rem; }

/* Inverted closing band — the page's full-stop. */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 5rem) 0;
  background: #000;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.cta-band .cta-sub { color: rgba(255, 255, 255, .65); font-size: .9375rem; margin: 0 0 1.6rem; }

.cta-band .btn-inverse {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.cta-band .btn-inverse:hover { background: #e9e9e9; border-color: #e9e9e9; color: #000; }

.cta-band .btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.cta-band .btn-ghost-light:hover { border-color: #fff; color: #fff; }

.cta-band .eyebrow { color: rgba(255, 255, 255, .5); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { border-color: rgba(255, 255, 255, .25); }

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid #000;
  padding: 3.25rem 0 1.75rem;
  font-size: .8125rem;
  color: var(--ej-faint);
  background: #fff;
}

.site-footer h4 {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: .8rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }

.site-footer a {
  color: var(--ej-muted);
  text-decoration: none;
  min-height: 28px;            /* comfortable touch targets on mobile */
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover { color: #000; text-decoration: underline; }

.footer-tagline {
  color: var(--ej-muted);
  font-size: .9375rem;
  max-width: 30ch;
  margin: 0 0 1rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .875rem;
  color: #000 !important;
  border-bottom: 2px solid #000;
  padding-bottom: .15rem;
  text-decoration: none !important;
}

.footer-cta:hover { opacity: .7; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ej-hairline);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
}

.footer-legal-links button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ej-muted);
  min-height: 28px;
  cursor: pointer;
}

.footer-legal-links button:hover { color: #000; text-decoration: underline; }

/* ── Cookie consent (vanilla-cookieconsent) theme ─────── */

#cc-main {
  --cc-font-family: var(--bs-body-font-family);
  --cc-bg: #fff;
  --cc-primary-color: #000;
  --cc-secondary-color: var(--ej-muted);
  --cc-modal-border-radius: 1rem;
  --cc-btn-border-radius: .5rem;
  --cc-modal-margin: 1rem;

  --cc-btn-primary-bg: #000;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #000;
  --cc-btn-primary-hover-bg: #2a2a2a;
  --cc-btn-primary-hover-border-color: #2a2a2a;

  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-color: #000;
  --cc-btn-secondary-border-color: #000;
  --cc-btn-secondary-hover-bg: #f1f1f1;
  --cc-btn-secondary-hover-border-color: #000;

  --cc-separator-border-color: var(--ej-hairline);
  --cc-toggle-on-bg: #000;
  --cc-toggle-off-bg: #b5b5b5;
  --cc-toggle-readonly-bg: #d9d9d9;
  --cc-cookie-category-block-bg: var(--ej-soft);
  --cc-cookie-category-block-border: var(--ej-hairline);
  --cc-cookie-category-block-hover-bg: #f1f1f1;
  --cc-cookie-category-block-hover-border: var(--ej-hairline);
  --cc-cookie-category-expanded-block-hover-bg: #f1f1f1;
  --cc-cookie-category-expanded-block-bg: var(--ej-soft);
  --cc-overlay-bg: rgba(0, 0, 0, .45);
  --cc-footer-bg: var(--ej-soft);
  --cc-footer-color: var(--ej-muted);
}

#cc-main .cm,
#cc-main .pm {
  border: 1px solid #000;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.12);
}

#cc-main .cm__title { font-weight: 800; letter-spacing: -.01em; }
#cc-main a { color: #000; font-weight: 600; }

/* ── Auth pages ───────────────────────────────────────── */

.auth-wrap { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem 4.5rem; }

.auth-card {
  border: 1px solid #000;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 480px) { .auth-card { padding: 2rem 1.75rem; } }

.auth-aside h1 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.form-control, .input-group-text {
  border-color: #000;
  font-size: 1rem; /* ≥16px prevents iOS focus zoom */
  min-height: 46px;
}

.form-control::placeholder { color: #b5b5b5; }

.form-label { font-size: .8125rem; font-weight: 700; margin-bottom: .35rem; }
.form-text { font-size: .78125rem; color: var(--ej-faint); }

.input-group-text { background: var(--ej-soft); color: var(--ej-muted); font-size: .875rem; }

.availability { font-size: .78125rem; margin-top: .35rem; min-height: 1.1rem; }
.availability.ok { color: #1a7f37; font-weight: 600; }
.availability.bad { color: #b3261e; font-weight: 600; }
.availability.checking { color: var(--ej-faint); }

.strength { display: flex; gap: 4px; margin-top: .5rem; }
.strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--ej-hairline); transition: background .2s; }
.strength.s1 span:nth-child(-n+1),
.strength.s2 span:nth-child(-n+2),
.strength.s3 span:nth-child(-n+3),
.strength.s4 span:nth-child(-n+4) { background: #000; }

.toggle-pass {
  border: 1px solid #000;
  border-left: 0;
  background: var(--ej-soft);
  color: var(--ej-muted);
  font-size: .78125rem;
  font-weight: 700;
  padding: 0 .8rem;
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.toggle-pass:hover { color: #000; }

/* Signup wizard */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ej-faint);
  flex-wrap: wrap;
}

.wizard-progress .wstep {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.wizard-progress .wdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ej-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  flex-shrink: 0;
}

.wizard-progress .wstep.active { color: #000; }
.wizard-progress .wstep.active .wdot { border-color: #000; }
.wizard-progress .wstep.done { color: #000; }
.wizard-progress .wstep.done .wdot { background: #000; border-color: #000; color: #fff; }
.wizard-progress .wsep { color: var(--ej-hairline); }

.js .wizard-step[hidden] { display: none; }

/* Recent workspaces */
.recent-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  border: 1px solid var(--ej-hairline);
  border-radius: var(--bs-border-radius);
  background: #fff;
  padding: .75rem .9rem;
  margin-bottom: .5rem;
  font-size: .90625rem;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.recent-item:hover { border-color: #000; }
.recent-item .ws { min-width: 0; overflow-wrap: anywhere; }
.recent-item .suffix { color: var(--ej-faint); }

/* Welcome / provisioning */
.progress-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: left; }

.progress-steps li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--ej-hairline);
  font-size: .90625rem;
  color: var(--ej-faint);
  min-width: 0;
}

.progress-steps li:last-child { border-bottom: 0; }

.progress-steps .marker {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ej-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 800;
}

.progress-steps li.done { color: #000; }
.progress-steps li.done .marker { background: #000; border-color: #000; color: #fff; }
.progress-steps li.active { color: #000; font-weight: 600; }
.progress-steps li.active .marker { border-color: #000; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ej-hairline);
  border-top-color: #000;
  border-radius: 50%;
  animation: ej-spin .8s linear infinite;
}

@keyframes ej-spin { to { transform: rotate(360deg); } }

.url-chip {
  display: inline-block;
  max-width: 100%;
  border: 1px dashed var(--ej-faint);
  border-radius: var(--bs-border-radius);
  background: var(--ej-soft);
  padding: .5rem .85rem;
  font-weight: 700;
  font-size: .90625rem;
  overflow-wrap: anywhere;
  margin: .25rem 0 1.1rem;
}

/* ── App pages ────────────────────────────────────────── */

.icon-tile {
  width: 42px;
  height: 42px;
  border: 1px solid #000;
  border-radius: .625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-tile-lg { width: 58px; height: 58px; border-radius: .875rem; margin-bottom: 1rem; }

.app-hero { padding-top: 2.5rem; }

.app-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--ej-hairline);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}

.app-card:hover { border-color: #000; transform: translateY(-2px); }
.app-card h3 { font-size: 1.0625rem; font-weight: 700; margin: 1rem 0 .35rem; letter-spacing: -.01em; }
.app-card p { font-size: .9375rem; color: var(--ej-muted); margin: 0 0 1rem; line-height: 1.55; }

.app-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 700;
  color: #000;
}

.feature-card .icon-tile { margin-bottom: .75rem; }

.feature-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}

.feature-card-link:hover { border-color: #000; transform: translateY(-2px); }
.feature-card-link .app-card-more { margin-top: auto; padding-top: .9rem; }

/* ── Docs ─────────────────────────────────────────────── */

.docs-layout { padding: 1.5rem 0 4rem; }
@media (min-width: 992px) { .docs-layout { padding: 2.5rem 0 4rem; } }

.docs-nav { font-size: .875rem; }

@media (min-width: 992px) {
  .docs-nav {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding-right: .25rem;
  }
}

.docs-nav-section {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ej-faint);
  margin: 1.1rem 0 .35rem;
  padding-left: .75rem;
}

.docs-nav-item {
  border-radius: .5rem;
  padding: .45rem .75rem;
  color: var(--ej-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.docs-nav-item:hover { background: var(--ej-soft); color: #000; }
.docs-nav-item.active { background: #000; color: #fff; }

/* Mobile: a single compact control that reveals the nav on tap.
 * Desktop: the full list is always shown, the toggle hidden. */
.docs-nav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid var(--ej-hairline);
  border-radius: .625rem;
  background: #fff;
  padding: .8rem 1rem;
  font-size: .9375rem;
  font-weight: 700;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.docs-nav-toggle .dnt-label { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.docs-nav-toggle .dnt-caret { color: var(--ej-faint); transition: transform .15s ease; flex-shrink: 0; }
.docs-nav-toggle[aria-expanded="true"] .dnt-caret { transform: rotate(90deg); }

@media (max-width: 991.98px) {
  .docs-nav-list {
    display: none;
    margin-top: .5rem;
    padding: .5rem;
    border: 1px solid var(--ej-hairline);
    border-radius: .625rem;
  }
  .docs-nav-list.is-open { display: block; }
}

/* Docs search */
.docs-search { position: relative; }

.docs-search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #000;
  border-radius: .5rem;
  padding: 0 .75rem;
  background: #fff;
}

.docs-search-box .lucide { color: var(--ej-faint); }

.docs-search-box input {
  border: 0;
  outline: none;
  width: 100%;
  min-height: 42px;
  font-size: .9375rem;
  background: transparent;
}

.docs-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: .625rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
}

.docs-search-results a {
  display: block;
  padding: .6rem .8rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--ej-hairline);
}

.docs-search-results a:last-child { border-bottom: 0; }
.docs-search-results a:hover { background: var(--ej-soft); }
.docs-search-results a b { display: block; font-size: .875rem; }
.docs-search-results a span {
  display: block;
  font-size: .75rem;
  color: var(--ej-faint);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.docs-search-empty { margin: 0; padding: .7rem .8rem; font-size: .8125rem; color: var(--ej-faint); }

/* On-this-page TOC */
.docs-toc {
  position: sticky;
  top: 76px;
  font-size: .8125rem;
  border-left: 1px solid var(--ej-hairline);
  padding-left: 1rem;
}

.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc li { margin-bottom: .15rem; }

.docs-toc a {
  display: block;
  padding: .25rem .5rem;
  color: var(--ej-muted);
  text-decoration: none;
  border-radius: .375rem;
}

.docs-toc a:hover { color: #000; background: var(--ej-soft); }
.docs-toc a.active { color: #000; font-weight: 700; }

/* Heading anchors */
.docs-body h2 { scroll-margin-top: 84px; }

.docs-anchor {
  margin-left: .4rem;
  color: var(--ej-hairline);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  transition: opacity .12s ease;
}

.docs-body h2:hover .docs-anchor { opacity: 1; color: var(--ej-faint); }
.docs-anchor:hover { color: #000 !important; }

/* Callouts */
.docs-callout {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  border: 1px solid var(--ej-hairline);
  border-left: 3px solid #000;
  border-radius: .5rem;
  background: var(--ej-soft);
  padding: .85rem 1rem;
  font-size: .875rem;
  margin: 2rem 0 0;
}

.docs-callout .lucide { margin-top: .15rem; }

.docs-feedback {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ej-faint);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ej-hairline);
}

.docs-body h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: .75rem; }
.docs-body h2 {
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -.01em;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ej-hairline);
}
.docs-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.75rem; }
.docs-body p, .docs-body li { color: #333; font-size: 1rem; line-height: 1.7; }
.docs-body p { margin-bottom: 1rem; }
.docs-body li { margin-bottom: .4rem; }
.docs-body ul, .docs-body ol { padding-left: 1.15rem; margin-bottom: 1.1rem; }
.docs-body .lead-muted { color: var(--ej-muted); font-size: 1.0625rem; line-height: 1.6; margin-bottom: 1.5rem; }
.docs-body b { color: #000; }

.docs-card {
  height: 100%;
  border: 1px solid var(--ej-hairline);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.25rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .12s ease;
}

.docs-card:hover { border-color: #000; }
.docs-card h3 { font-size: .9375rem; font-weight: 700; margin: .6rem 0 .25rem; }
.docs-card p { font-size: .8125rem; color: var(--ej-muted); margin: 0; }

.docs-toc-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ej-hairline);
  flex-wrap: wrap;
}

kbd {
  background: #000;
  border-radius: .25rem;
  font-size: .75rem;
}

/* ── Utilities / a11y ─────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 .5rem 0;
  z-index: 2000;
}

.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
