/* ==========================================================================
   Kynvera public landing page.
   Monochrome canvas shell with a single coral accent.
   Every rule is scoped under `.landing` so nothing leaks into app pages.
   ========================================================================== */

.landing {
  --l-shell: #e8e8e7;
  --l-canvas: #e8e8e7;
  --l-card: #ffffff;
  --l-ink: #121212;
  --l-ink-soft: #3a3a38;
  --l-muted: #6f6f6c;
  --l-line: rgba(18, 18, 18, 0.08);
  --l-line-strong: rgba(18, 18, 18, 0.14);
  --l-accent: #ff8e68;
  --l-accent-deep: #e05f36;
  --l-accent-soft: #fff4ef;
  --l-accent-block: rgba(255, 142, 104, 0.24);

  --l-radius-canvas: 40px;
  --l-radius-card: 24px;
  --l-radius-sm: 14px;

  --l-rule-inset: 104px;
  --l-pad-x: clamp(20px, 5vw, 96px);
  --l-nav-space: 88px;

  --l-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --l-display: 'Sora', 'DM Sans', sans-serif;

  --l-shadow-pill: 0 6px 18px rgba(18, 18, 18, 0.08);
  --l-shadow-card: 0 18px 48px rgba(18, 18, 18, 0.07);

  margin: 0;
  min-height: 100vh;
  background: var(--l-shell);
  color: var(--l-ink);
  font-family: var(--l-font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.landing *,
.landing *::before,
.landing *::after {
  box-sizing: border-box;
}

.landing button {
  font: inherit;
  color: inherit;
}

/* Base resets use :where() so component classes below always win. */
.landing :where(img) {
  max-width: 100%;
  display: block;
}

.landing :where(a) {
  color: inherit;
  text-decoration: none;
}

.landing :where(h1, h2, h3) {
  font-family: var(--l-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.landing :where(h1, h2, h3, p, ul, ol, blockquote) {
  margin: 0;
}

.landing :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.landing :focus-visible {
  outline: 2px solid var(--l-accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Canvas shell + faint grid rules
   -------------------------------------------------------------------------- */

.l-canvas {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  padding-top: var(--l-nav-space);
}

/* Soft warm glow behind the hero on the single shared background. */
.l-canvas::after {
  content: '';
  position: absolute;
  top: -8%;
  left: 50%;
  z-index: 0;
  width: min(920px, 110%);
  height: 720px;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 55% at 50% 28%, rgba(255, 142, 104, 0.14), transparent 70%);
}

.l-section {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 5vw, 68px) var(--l-pad-x);
  border-bottom: 0;
  scroll-margin-top: calc(var(--l-nav-space) + 8px);
}

.l-section--tight {
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(28px, 3vw, 44px);
}

.l-hero + .l-section {
  padding-top: clamp(16px, 2vw, 28px);
}

.l-center {
  text-align: center;
}

.l-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--l-line-strong);
  background: var(--l-card);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--l-ink-soft);
}

.l-h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 700;
  margin-top: 14px;
}

.l-lead {
  margin: 10px auto 0;
  max-width: 480px;
  color: var(--l-muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Buttons + chips
   -------------------------------------------------------------------------- */

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.l-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.l-btn:hover {
  transform: translateY(-1px);
}

.l-btn--accent {
  background: var(--l-accent);
  color: #ffffff;
  box-shadow: none;
}

.l-btn--accent:hover {
  background: var(--l-accent-deep);
}

.l-btn--dark {
  background: var(--l-ink);
  color: #ffffff;
}

.l-btn--dark:hover {
  background: #000000;
}

.l-btn--light {
  background: var(--l-card);
  color: var(--l-ink);
  border-color: var(--l-line-strong);
  box-shadow: none;
}

.l-btn--light:hover {
  border-color: rgba(18, 18, 18, 0.24);
}

.l-btn--sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 13px;
}

.l-btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Floating pill navigation
   -------------------------------------------------------------------------- */

.l-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1040px, calc(100% - 40px));
}

.l-nav-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.l-nav-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(18, 18, 18, 0.07);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 880px;
}

.l-nav.is-stuck .l-nav-pill,
.l-nav.is-stuck .l-user-pill {
  box-shadow: 0 12px 32px rgba(18, 18, 18, 0.12);
  border-color: rgba(18, 18, 18, 0.12);
}

.l-nav-signin {
  font: inherit;
}

.l-nav.is-authed .l-nav-signin,
.l-nav.is-authed .l-nav-drawer-signin {
  display: none !important;
}

/* User account pill (separate from main nav) */
.l-user-pill {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(18, 18, 18, 0.07);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.l-user-pill[hidden] {
  display: none !important;
}

.l-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 2px 10px 2px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.l-user-trigger:hover {
  background: rgba(18, 18, 18, 0.04);
}

.l-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--l-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

.l-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 140px;
  line-height: 1.2;
}

.l-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--l-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-user-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--l-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.l-user-chevron {
  width: 16px;
  height: 16px;
  color: var(--l-ink-soft);
  flex: none;
  transition: transform 0.18s ease;
}

.l-user-pill.is-open .l-user-chevron {
  transform: rotate(180deg);
}

.l-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.14);
  z-index: 2;
}

.l-user-menu[hidden] {
  display: none !important;
}

.l-user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--l-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.l-user-menu-item:hover {
  background: rgba(18, 18, 18, 0.05);
}

#l-user-signout {
  color: #b42318;
}

/* Login modal */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.l-login-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0))
    max(16px, env(safe-area-inset-right, 0))
    max(16px, env(safe-area-inset-bottom, 0))
    max(16px, env(safe-area-inset-left, 0));
}

.l-login-modal[hidden] {
  display: none !important;
}

.l-login-modal-scrim {
  position: absolute;
  inset: 0;
  background: #e3e3e3;
}

.l-login-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 95vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.l-login-modal .login-shell {
  max-height: 95vh;
  background: #ffffff;
}

@media (min-width: 768px) {
  .l-login-modal .login-shell {
    min-height: min(640px, 90vh);
    max-height: 90vh;
  }
}

.l-login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--l-ink);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.12);
  cursor: pointer;
}

.l-login-modal-close:hover {
  background: #fff;
}

.l-login-modal-close svg {
  width: 18px;
  height: 18px;
}

body.l-login-open {
  overflow: hidden;
}

.l-nav-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: 8px;
}

.l-nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.l-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.l-nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--l-ink-soft);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.l-nav-links a:hover {
  color: var(--l-ink);
  background: rgba(18, 18, 18, 0.05);
}

.l-nav-links a.is-active {
  color: var(--l-ink);
  font-weight: 600;
}

.l-nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--l-accent);
  transform: translateX(-50%);
}

.l-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.l-nav-actions .l-btn--accent {
  box-shadow: none;
}

.l-nav-actions .l-btn--light {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.l-nav-actions .l-btn--light:hover {
  background: rgba(18, 18, 18, 0.05);
  border-color: transparent;
}

.l-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--l-line-strong);
  border-radius: 999px;
  background: var(--l-card);
  cursor: pointer;
  flex: none;
}

.l-nav-toggle svg {
  width: 18px;
  height: 18px;
}

.l-nav-drawer {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.14);
}

.l-nav-drawer a,
.l-nav-drawer-signin {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.l-nav-drawer a:hover,
.l-nav-drawer-signin:hover {
  background: rgba(18, 18, 18, 0.05);
}

.l-nav.is-open .l-nav-drawer {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.l-hero {
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(16px, 2.5vw, 28px);
  text-align: center;
}

.l-hero h1 {
  margin: 12px auto 0;
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.l-mark {
  display: inline-block;
  padding: 0.02em 0.26em 0.08em;
  border-radius: 0.28em;
  background: var(--l-accent-block);
  color: var(--l-accent-deep);
}

.l-hero-sub {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--l-muted);
  font-size: 14px;
}

.l-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Logo cloud
   -------------------------------------------------------------------------- */

.l-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 36px);
  flex-wrap: wrap;
}

.l-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(18, 18, 18, 0.38);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.l-logo svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */

.l-quote {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.l-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--l-accent-soft);
  border: 1px solid rgba(224, 95, 54, 0.22);
  color: var(--l-accent-deep);
  font-family: var(--l-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.l-quote h3 {
  font-size: 16px;
  font-weight: 700;
}

.l-quote blockquote {
  margin: 12px 0 0;
  color: var(--l-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.l-quote-by {
  margin-top: 12px;
  color: rgba(18, 18, 18, 0.42);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Applications showcase (tabs)
   -------------------------------------------------------------------------- */

.l-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 20px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.05);
  max-width: 100%;
}

.l-tab {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.l-tab:hover {
  color: var(--l-ink);
}

.l-tab[aria-selected='true'] {
  background: var(--l-card);
  color: var(--l-ink);
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.1);
}

.l-panels {
  margin-top: 24px;
  text-align: left;
  scroll-margin-top: calc(var(--l-nav-space) + 8px);
}

.l-panel[hidden] {
  display: none;
}

.l-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  border-radius: var(--l-radius-card);
  background: var(--l-card);
  border: 1px solid var(--l-line);
  box-shadow: var(--l-shadow-card);
  overflow: hidden;
}

.l-showcase-copy {
  padding: clamp(22px, 2.6vw, 34px);
}

.l-showcase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--l-accent-soft);
  color: var(--l-accent-deep);
}

.l-showcase-icon svg {
  width: 21px;
  height: 21px;
}

.l-showcase-icon--app {
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.l-showcase-icon--app img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.l-showcase-copy h3 {
  margin-top: 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  max-width: 12ch;
}

.l-showcase-copy > p {
  margin-top: 12px;
  color: var(--l-muted);
  font-size: 14px;
  max-width: 40ch;
}

.l-checks {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.l-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--l-ink-soft);
}

.l-checks svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--l-accent-deep);
}

.l-showcase-cta {
  margin-top: 28px;
}

.l-showcase-visual {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px) 0 0 clamp(16px, 2vw, 28px);
  background: var(--l-canvas);
  border-left: 1px solid var(--l-line);
  overflow: hidden;
  min-height: 280px;
}

.l-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px 0 0 0;
  border: 1px solid var(--l-line-strong);
  border-right: 0;
  border-bottom: 0;
  background: var(--l-card);
  box-shadow: -12px 12px 40px rgba(18, 18, 18, 0.1);
  overflow: hidden;
}

.l-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--l-line);
  background: var(--l-canvas);
}

.l-frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.14);
}

.l-frame-bar i:first-child {
  background: rgba(255, 142, 104, 0.55);
}

.l-frame-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--l-muted);
  letter-spacing: 0.01em;
}

/* Simplified in-product view rendered in CSS, not a captured screenshot. */
.l-mock {
  flex: 1;
  display: flex;
  min-height: 300px;
  min-width: 460px;
  background: var(--l-canvas);
}

.l-mock-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 52px;
  padding: 16px 0;
  border-right: 1px solid var(--l-line);
  background: var(--l-card);
}

.l-mock-rail img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.l-mock-rail i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.1);
}

.l-mock-rail i:first-of-type {
  background: var(--l-accent);
}

.l-mock-main {
  flex: 1;
  padding: 16px 18px;
  min-width: 0;
}

.l-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.l-mock-head strong {
  font-family: var(--l-display);
  font-size: 13px;
  letter-spacing: -0.02em;
}

.l-mock-chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--l-accent-soft);
  color: var(--l-accent-deep);
  font-size: 9.5px;
  font-weight: 600;
}

.l-mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.l-mock-stat {
  padding: 10px 12px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: var(--l-card);
}

.l-mock-stat span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.4);
}

.l-mock-stat b {
  display: block;
  margin-top: 4px;
  font-family: var(--l-display);
  font-size: 17px;
  letter-spacing: -0.03em;
}

.l-mock-rows {
  margin-top: 12px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: var(--l-card);
  overflow: hidden;
}

.l-mock-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--l-line);
}

.l-mock-rows li:last-child {
  border-bottom: 0;
}

.l-mock-avatar {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 142, 104, 0.16);
}

.l-mock-row-text {
  min-width: 0;
  flex: 1;
}

.l-mock-row-text b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-mock-row-text span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--l-muted);
}

.l-mock-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--l-line-strong);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--l-muted);
}

.l-mock-tag--live {
  border-color: rgba(224, 95, 54, 0.3);
  background: var(--l-accent-soft);
  color: var(--l-accent-deep);
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

.l-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.l-pillar {
  padding: 28px 26px 30px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-card);
  background: var(--l-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.l-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--l-shadow-card);
}

.l-pillar-num {
  font-family: var(--l-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--l-accent-deep);
}

.l-pillar h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

.l-pillar p {
  margin-top: 10px;
  color: var(--l-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.l-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  text-align: left;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-card);
  background: var(--l-card);
  overflow: hidden;
}

.l-step {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--l-line);
}

.l-step:last-child {
  border-right: 0;
}

.l-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--l-ink);
  color: #ffffff;
  font-family: var(--l-display);
  font-size: 13px;
  font-weight: 700;
}

.l-step h3 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
}

.l-step p {
  margin-top: 8px;
  color: var(--l-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.l-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.l-plan {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 32px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-card);
  background: var(--l-card);
}

.l-plan--featured {
  border-color: rgba(255, 142, 104, 0.55);
  box-shadow: 0 18px 44px rgba(224, 95, 54, 0.12);
}

.l-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.l-plan-name {
  font-family: var(--l-display);
  font-size: 15px;
  font-weight: 700;
}

.l-plan-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--l-accent-soft);
  color: var(--l-accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.l-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--l-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.l-plan-price span {
  font-family: var(--l-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--l-muted);
}

.l-plan-desc {
  margin-top: 10px;
  color: var(--l-muted);
  font-size: 13.5px;
}

.l-plan .l-checks {
  margin-bottom: 28px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   FAQs
   -------------------------------------------------------------------------- */

.l-faqs {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: left;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-card);
  background: var(--l-card);
  overflow: hidden;
}

.l-faq {
  border-bottom: 1px solid var(--l-line);
}

.l-faq:last-child {
  border-bottom: 0;
}

.l-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  min-height: 44px;
  font-family: var(--l-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.l-faq summary::-webkit-details-marker {
  display: none;
}

.l-faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--l-muted);
  border-bottom: 2px solid var(--l-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.l-faq[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.l-faq p {
  padding: 0 24px 22px;
  color: var(--l-muted);
  font-size: 14px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.l-cta-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(22px, 3.2vw, 48px);
  border-radius: var(--l-radius-card);
  background: var(--l-ink);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.l-cta-card::before {
  content: '';
  position: absolute;
  inset: -40% 30% auto;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255, 142, 104, 0.32), transparent);
  pointer-events: none;
}

.l-cta-card h2 {
  position: relative;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
  max-width: 18ch;
  margin: 0 auto;
}

.l-cta-card p {
  position: relative;
  margin: 14px auto 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.l-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.l-btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.l-btn--onDark:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.l-footer {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4vw, 48px) var(--l-pad-x) 28px;
  border-top: 1px solid var(--l-line);
}

.l-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.l-footer-brand img {
  height: 22px;
  width: auto;
}

.l-footer-brand p {
  margin-top: 14px;
  max-width: 30ch;
  color: var(--l-muted);
  font-size: 13.5px;
}

.l-footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
}

.l-footer-col ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.l-footer-col a {
  font-size: 13.5px;
  color: var(--l-ink-soft);
}

.l-footer-col a:hover {
  color: var(--l-accent-deep);
}

.l-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--l-line);
  font-size: 12.5px;
  color: rgba(18, 18, 18, 0.45);
}

.l-footer-bottom nav {
  display: flex;
  gap: 18px;
}

.l-footer-bottom a:hover {
  color: var(--l-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .landing {
    --l-rule-inset: 64px;
  }
}

@media (max-width: 1024px) {
  .l-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .l-showcase-visual {
    border-left: 0;
    border-top: 1px solid var(--l-line);
    padding: clamp(24px, 4vw, 34px) clamp(20px, 4vw, 34px) 0;
    min-height: 0;
  }

  .l-frame {
    border-radius: 16px 16px 0 0;
    border-right: 1px solid var(--l-line-strong);
    box-shadow: 0 14px 34px rgba(18, 18, 18, 0.1);
  }

  /* Stacked, the mock has no room to bleed - let it fit instead. */
  .l-mock {
    min-width: 0;
  }

  .l-pillars,
  .l-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .l-step {
    border-right: 0;
    border-bottom: 1px solid var(--l-line);
  }

  .l-step:last-child {
    border-bottom: 0;
  }

  .l-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .l-nav-links {
    display: none;
  }

  .l-nav-toggle {
    display: inline-flex;
  }

  .l-nav-actions .l-btn--light,
  .l-nav-actions .l-nav-signin {
    display: none;
  }

  .l-nav-cluster {
    justify-content: stretch;
  }

  .l-nav-pill {
    flex: 1 1 auto;
    max-width: none;
  }

  .l-user-meta {
    max-width: 96px;
  }

  .l-user-role {
    display: none;
  }

  .l-login-modal-panel {
    max-height: 95vh;
  }
}

@media (max-width: 768px) {
  .landing {
    --l-radius-canvas: 24px;
    --l-nav-space: 80px;
    --l-pad-x: 20px;
  }

  .l-canvas {
    margin: 0;
  }

  .l-canvas::after {
    width: 140%;
    height: 520px;
    top: -4%;
  }

  .l-logos {
    justify-content: center;
    gap: 18px 26px;
  }

  .l-logo {
    font-size: 13px;
  }

  .l-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .l-tabs::-webkit-scrollbar {
    display: none;
  }

  .l-pillars,
  .l-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .l-hero-cta .l-btn,
  .l-cta-actions .l-btn {
    flex: 1 1 auto;
    min-width: 160px;
  }

  /* Keep every control at the 44px minimum touch target. */
  .l-btn--sm {
    min-height: 44px;
    padding: 10px 18px;
  }

  .l-nav-toggle {
    width: 44px;
    height: 44px;
  }

  .l-tab {
    min-height: 44px;
  }

  .l-mock-rail {
    width: 42px;
  }

  .l-mock-main {
    padding: 14px;
  }

  .l-mock-stat {
    padding: 8px 9px;
  }

  .l-mock-stat b {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .l-footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .l-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .l-hero h1 {
    max-width: none;
  }

  /* Give the mock row titles the full width rather than truncating them. */
  .l-mock-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before,
  .landing *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
