/* ── Reset & Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Design System Tokens (light mode defaults) */
:root {
  /* Spacing */
  --sp2: 2px;
  --sp4: 4px;
  --sp8: 8px;
  --sp12: 12px;
  --sp16: 16px;
  --sp24: 24px;
  --sp32: 32px;
  --sp48: 48px;
  /* Radius */
  --r2: 2px;
  --r4: 4px;
  --r6: 6px;
  --r10: 10px;
  --pill: 999px;
  /* Component size */
  --buttonH: 28px;
  --sectionHeaderH: 32px;
  --hitTarget: 24px;
  --sidebarCollapsed: 48px;
  /* Icon size */
  --iconXs: 12px;
  --iconSm: 14px;
  --iconMd: 16px;
  --iconLg: 20px;
  --iconXl: 28px;
  /* Semantic colors – warm paper (matches desktop app) */
  --surfaceCanvas: #E6E2D6;
  --surfacePanel: #EFECE3;
  --surfaceRaised: #FAF8F2;
  --surfaceSunken: #EDEAE0;
  --textPrimary: #20201C;
  --textSecondary: #514F47;
  --textMuted: #736F63;
  --textDisabled: #BDB8A6;
  --borderHairline: #D3CDBD;
  --borderStrong: #C6C1B1;
  --semanticAccent: #D2481C;
  --semanticAccentDim: rgba(210,72,28,.10);
  --semanticSuccess: #3F7A4E;
  --semanticSuccessDim: rgba(63,122,78,.13);
  --semanticWarn: #B06A14;
  --semanticWarnDim: rgba(176,106,20,.13);
  --semanticError: #A8392A;
  --semanticErrorDim: rgba(168,57,42,.12);
  /* Elevation – warm soft shadows */
  --elevation0: none;
  --elevation1: 0 1pt 2pt rgba(40,34,22,.05);
  --elevation2: 0 4pt 14pt rgba(40,34,22,.07);
  --elevation4: 0 16pt 40pt rgba(40,34,22,.13);
  /* Typography */
  --fontInter: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fontMono: "Space Mono", "IBM Plex Mono", "Consolas", monospace;
  /* Primary button – warm ink (matches desktop app's dominant action) */
  --btnPrimaryBg: #1B1A16;
  --btnPrimaryFg: #F4F1E8;
  --btnPrimaryHover: #2C2A24;
  --displayMedium: 22px;
  --titleSmall: 13px;
  --titleMedium: 15px;
  --bodyMedium: 13px;
  --bodySmall: 12px;
  --labelSmall: 11px;
  /* Motion */
  --motionInstant: 0ms;
  --motionFast: 120ms;
  --motionBase: 180ms;
  --motionSlow: 300ms;
  --motionCurve: cubic-bezier(0.22,1,0.36,1);
  --motionLinear: linear;
  --staggerStep: 30ms;
}

body {
  font-family: var(--fontInter);
  background: var(--surfaceCanvas);
  color: var(--textPrimary);
  line-height: 1.6;
}
a { color: var(--semanticAccent); text-decoration: none; }
a:hover { text-decoration: underline; }

* {
  scrollbar-color: var(--borderStrong) var(--surfaceSunken);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--surfaceSunken);
}
*::-webkit-scrollbar-thumb {
  background: var(--borderStrong);
  border-radius: var(--r2);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--textMuted);
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--semanticAccent);
  outline-offset: 2px;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.main { padding: 2rem 0; }

/* ── Navbar ──────────────────────────────────────────────────────────────────── */
.navbar { background: var(--surfacePanel); border-bottom: 1pt solid var(--borderHairline); padding: var(--sp12) 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { color: var(--textPrimary); font-size: var(--titleSmall); font-weight: 600; }
.navbar-links { display: flex; align-items: center; gap: var(--sp24); }
.navbar-links a { color: var(--textSecondary); font-size: var(--bodySmall); }
.navbar-links a:hover { color: var(--textPrimary); text-decoration: none; }
.navbar-links form { margin: 0; }
.navbar-links button {
  background: none; border: none; color: var(--textSecondary); cursor: pointer;
  font-size: var(--bodySmall); padding: 0;
}
.navbar-links button:hover { color: var(--textPrimary); }

/* ── Card ────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surfaceRaised);
  border: 1pt solid var(--borderHairline);
  border-radius: var(--r10);
  box-shadow: var(--elevation1);
  padding: var(--sp24);
  margin-bottom: var(--sp16);
}
.card-title {
  color: var(--textPrimary);
  font-size: var(--titleSmall);
  font-weight: 600;
  margin-bottom: var(--sp16);
}

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .25em .7em;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.badge-active    { background: var(--semanticSuccessDim); color: var(--semanticSuccess); }
.badge-on_trial  { background: var(--semanticAccentDim); color: var(--semanticAccent); }
.badge-cancelled { background: var(--semanticErrorDim); color: var(--semanticError); }
.badge-expired   { background: var(--surfaceSunken); color: var(--textMuted); }
.badge-paused    { background: var(--semanticWarnDim); color: var(--semanticWarn); }
.badge-none      { background: var(--surfaceSunken); color: var(--textMuted); }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp8); }
.form-group label { display: block; font-size: var(--bodySmall); font-weight: 500; margin-bottom: var(--sp2); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: var(--sp4) var(--sp8);
  background: var(--surfaceSunken);
  color: var(--textPrimary);
  border: 1pt solid var(--borderHairline); border-radius: var(--r4);
  font-size: var(--bodyMedium); font-family: var(--fontInter);
  transition: border-color var(--motionFast), box-shadow var(--motionFast);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--textMuted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--semanticAccent);
  box-shadow: 0 0 0 3px var(--semanticAccentDim);
}
.form-error { color: var(--semanticError); font-size: var(--bodySmall); margin-top: var(--sp2); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--hitTarget);
  height: var(--buttonH);
  gap: var(--sp4);
  padding: 0 var(--sp8); border: none; border-radius: var(--r4);
  font-size: var(--bodyMedium); font-weight: 500; cursor: pointer;
  text-decoration: none;
  transition: background var(--motionFast) var(--motionCurve), color var(--motionFast) var(--motionCurve), border-color var(--motionFast) var(--motionCurve), transform var(--motionFast) var(--motionCurve), filter var(--motionFast) var(--motionCurve);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled,
.btn[aria-disabled="true"] {
  color: var(--textDisabled);
  opacity: .5;
  pointer-events: none;
}
.btn-primary   { background: var(--btnPrimaryBg); color: var(--btnPrimaryFg); }
.btn-primary:hover { background: var(--btnPrimaryHover); }
.btn-secondary {
  background: transparent;
  color: var(--textPrimary);
  border: 1pt solid var(--borderStrong);
}
.btn-secondary:hover {
  background: var(--surfaceSunken);
  color: var(--textPrimary);
}
.btn-block     { width: 100%; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { padding: var(--sp2) var(--sp8); border-radius: var(--r4); margin-bottom: var(--sp8); font-size: var(--bodySmall); }
.alert-success { background: var(--semanticSuccessDim); color: var(--semanticSuccess); }
.alert-error, .alert-danger { background: var(--semanticErrorDim); color: var(--semanticError); }
.alert-info    { background: var(--semanticAccentDim); color: var(--semanticAccent); }

/* ── Auth page ───────────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--surfaceCanvas);
  padding: var(--sp16);
  gap: var(--sp24);
}
.auth-card {
  background: var(--surfaceRaised);
  border: 1px solid var(--borderHairline);
  border-radius: var(--r10);
  box-shadow: var(--elevation4);
  padding: var(--sp24);
  width: 100%; max-width: 416px;
}
.auth-card-kicker,
.auth-side-kicker {
  color: var(--semanticAccent);
  font-family: var(--fontMono);
  font-size: var(--labelSmall);
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: var(--sp8);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp8);
  color: var(--textPrimary) !important;
  text-decoration: none;
  margin-bottom: var(--sp16);
}
.auth-brand:hover {
  color: var(--textPrimary) !important;
  text-decoration: none;
}
.auth-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--r8);
  display: block;
}
.auth-brand-name,
.auth-brand-kicker {
  display: block;
}
.auth-brand-name {
  font-size: var(--bodyMedium);
  font-weight: 600;
  line-height: 1.2;
}
.auth-brand-kicker {
  color: var(--semanticAccent);
  font-family: var(--fontMono);
  font-size: var(--labelSmall);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}
.auth-title {
  font-size: var(--titleMedium);
  font-weight: 600;
  margin-bottom: var(--sp16);
}
.auth-consent {
  margin-top: var(--sp12);
  text-align: center;
  font-size: var(--labelSmall);
  line-height: 1.5;
  color: var(--textMuted);
}
.auth-footer { margin-top: var(--sp16); text-align: center; font-size: var(--bodySmall); color: var(--textSecondary); }
.auth-footer-sep { margin: 0 var(--sp4); color: var(--textMuted); }
.auth-description {
  color: var(--textMuted);
  font-size: var(--bodyMedium);
  margin-bottom: var(--sp24);
}

.social-auth-actions {
  display: grid;
  gap: var(--sp8);
  margin-bottom: var(--sp16);
}

.btn-social {
  background: transparent;
  border: 1pt solid var(--borderStrong);
  color: var(--textPrimary);
  font-weight: 600;
}

.btn-social:hover {
  border-color: var(--textMuted);
  background: var(--surfaceSunken);
}

.auth-divider {
  text-align: center;
  margin: var(--sp16) 0;
  color: var(--textMuted);
  font-size: var(--labelSmall);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.auth-wrapper--split {
  max-width: 980px;
  margin: 0 auto;
  justify-content: space-between;
}

.auth-side-panel {
  flex: 1;
  max-width: 480px;
  background: var(--surfacePanel);
  color: var(--textPrimary);
  border: 1pt solid var(--borderHairline);
  border-radius: var(--r10);
  padding: var(--sp24);
  box-shadow: var(--elevation1);
}

.auth-side-panel h1 {
  font-size: var(--displayMedium);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: var(--sp8);
}

.auth-side-panel p {
  color: var(--textSecondary);
  font-size: var(--bodyMedium);
  margin-bottom: var(--sp16);
}

.auth-side-actions {
  display: flex;
  gap: var(--sp8);
  flex-wrap: wrap;
}
.auth-feature-list {
  display: grid;
  gap: var(--sp8);
  margin-bottom: var(--sp24);
}
.auth-feature-row {
  display: flex;
  align-items: center;
  gap: var(--sp8);
  color: var(--textSecondary);
  font-size: var(--bodyMedium);
}

.password-field {
  position: relative;
}
.password-field input {
  padding-right: calc(var(--buttonH) + var(--sp8));
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: var(--sp4);
  display: inline-flex;
  width: var(--buttonH);
  height: var(--buttonH);
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--textMuted);
  background: transparent;
  border: 0;
  border-radius: var(--r4);
  cursor: pointer;
  transition: background var(--motionFast) var(--motionCurve), color var(--motionFast) var(--motionCurve);
}
.password-toggle:hover {
  background: var(--surfacePanel);
  color: var(--textPrimary);
}
.password-toggle__icon {
  width: var(--iconMd);
  height: var(--iconMd);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle__icon--hide {
  display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
  display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
  display: block;
}

/* ── Page heading ────────────────────────────────────────────────────────────── */
.page-title {
  color: var(--textPrimary);
  font-size: var(--displayMedium);
  font-weight: 600;
  margin-bottom: var(--sp24);
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-muted { color: var(--textMuted); }
.mt-1 { margin-top: var(--sp2); }
.mt-2 { margin-top: var(--sp8); }
.mt-3 { margin-top: var(--sp16); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.gap-2 { gap: var(--sp8); }

@media (max-width: 900px) {
  .auth-wrapper--split {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-side-panel,
  .auth-card {
    max-width: 100%;
  }
}

/* =============================================================================
   LANDING PAGE — Swiss Grid / Desktop Engineering Aesthetic
   Inspired by: Linear, Raycast, developer tools
   Prefix: lp- (landing page, isolated from portal styles)
   ============================================================================= */

/* Design tokens (scoped to .lp-body). Dark default, with .lp-body--light override. */
.lp-body {
  --surfaceCanvas: #E6E2D6;
  --surfacePanel: #EFECE3;
  --surfaceRaised: #FAF8F2;
  --surfaceSunken: #EDEAE0;
  --textPrimary: #20201C;
  --textSecondary: #514F47;
  --textMuted: #736F63;
  --textDisabled: #BDB8A6;
  --borderHairline: #D3CDBD;
  --borderStrong: #C6C1B1;
  --semanticAccent: #D2481C;
  --semanticAccentDim: rgba(210,72,28,.10);
  --semanticSuccess: #3F7A4E;
  --semanticSuccessDim: rgba(63,122,78,.13);
  --semanticWarn: #B06A14;
  --semanticWarnDim: rgba(176,106,20,.13);
  --semanticError: #A8392A;
  --semanticErrorDim: rgba(168,57,42,.12);
  --lp-bg:        #E6E2D6;
  --lp-bg-2:      #EFECE3;
  --lp-dark:      #1B1A16;
  --lp-dark-2:    #211F1A;
  --lp-dark-3:    #2C2A24;
  --lp-fg:        #20201C;
  --lp-fg-2:      #3F3D36;
  --lp-fg-3:      #6B6962;
  --lp-fg-4:      #908D80;
  --lp-border:    #D3CDBD;
  --lp-border-2:  #C6C1B1;
  --lp-white:     #FAF8F2;
  --lp-blue:      #D2481C;
  --lp-blue-dark: #B23C16;
  --lp-green:     #3F7A4E;
  --lp-green-b:   #3F7A4E;
  /* App window tokens – warm paper workstation */
  --app-bg:       #FAF8F2;
  --app-panel:    #EFECE3;
  --app-border:   #D3CDBD;
  --app-border-2: #C6C1B1;
  --app-text:     #20201C;
  --app-muted:    #908D80;
  --app-dim:      #BDB8A6;
  --app-green:    #3F7A4E;
  --app-blue:     #D2481C;
  --app-amber:    #B06A14;
  /* Typography */
  --f-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Space Mono", "IBM Plex Mono", "Consolas", monospace;
  --r: var(--r6);
}

.lp-body--light {
  --surfaceCanvas: #E6E2D6;
  --surfacePanel: #EFECE3;
  --surfaceRaised: #FAF8F2;
  --surfaceSunken: #EDEAE0;
  --textPrimary: #20201C;
  --textSecondary: #514F47;
  --textMuted: #736F63;
  --textDisabled: #BDB8A6;
  --borderHairline: #D3CDBD;
  --borderStrong: #C6C1B1;
  --semanticAccent: #D2481C;
  --semanticAccentDim: rgba(210,72,28,.10);
  --semanticSuccess: #3F7A4E;
  --semanticSuccessDim: rgba(63,122,78,.13);
  --semanticWarn: #B06A14;
  --semanticWarnDim: rgba(176,106,20,.13);
  --semanticError: #A8392A;
  --semanticErrorDim: rgba(168,57,42,.12);
  --lp-bg:        #E6E2D6;
  --lp-bg-2:      #EFECE3;
  --lp-dark:      #1B1A16;
  --lp-dark-2:    #211F1A;
  --lp-dark-3:    #2C2A24;
  --lp-fg:        #20201C;
  --lp-fg-2:      #3F3D36;
  --lp-fg-3:      #6B6962;
  --lp-fg-4:      #908D80;
  --lp-border:    #D3CDBD;
  --lp-border-2:  #C6C1B1;
  --lp-white:     #FAF8F2;
  --lp-blue:      #D2481C;
  --lp-blue-dark: #B23C16;
  --lp-green:     #3F7A4E;
  --lp-green-b:   #3F7A4E;
  --app-bg:       #FAF8F2;
  --app-panel:    #EFECE3;
  --app-border:   #D3CDBD;
  --app-border-2: #C6C1B1;
  --app-text:     #20201C;
  --app-muted:    #908D80;
  --app-dim:      #BDB8A6;
  --app-green:    #3F7A4E;
  --app-blue:     #D2481C;
  --app-amber:    #B06A14;
  --f-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Space Mono", "IBM Plex Mono", "Consolas", monospace;
  --r: var(--r6);
}

.lp-body {
  background: var(--lp-bg);
  color: var(--lp-fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
.lp-body *, .lp-body *::before, .lp-body *::after { box-sizing: border-box; }
.lp-body a { color: var(--lp-blue); text-decoration: none; }
.lp-body a:hover { text-decoration: underline; }
.lp-body h1,.lp-body h2,.lp-body h3 { margin: 0; }
.lp-body p { margin: 0; }
.lp-body ul { margin: 0; padding: 0; }
.lp-body button { font-family: inherit; }
.lp-mt-10 { margin-top: 10px !important; }
.lp-mb-0  { margin-bottom: 0 !important; }

/* Container */
.lp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lp-white);
  border-bottom: 1px solid var(--lp-border);
  height: 56px;
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
}
.lp-nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.lp-nav-collapse {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.lp-nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  color: var(--lp-fg);
  background: none;
  border: none;
  border-radius: var(--r4);
  cursor: pointer;
}
.lp-nav-burger:hover { background: var(--surfaceSunken); }
.lp-burger-top,
.lp-burger-mid,
.lp-burger-bot {
  transform-origin: center;
  transition: transform var(--motionFast) var(--motionCurve), opacity var(--motionFast) var(--motionCurve);
}
.lp-nav.is-open .lp-burger-top { transform: translateY(6px) rotate(45deg); }
.lp-nav.is-open .lp-burger-mid { opacity: 0; }
.lp-nav.is-open .lp-burger-bot { transform: translateY(-6px) rotate(-45deg); }
.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lp-fg) !important;
  letter-spacing: 0;
  text-decoration: none;
}
.lp-logo:hover { color: var(--lp-fg) !important; text-decoration: none; }
.lp-logo--light { color: #F4F1E8 !important; }
.lp-logo--light:hover { color: #F4F1E8 !important; }
.lp-logo-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  border-radius: 6px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.lp-nav-links a {
  font-size: 0.875rem;
  color: var(--lp-fg-3) !important;
  font-weight: 400;
  text-decoration: none;
  transition: color .15s;
}
.lp-nav-links a:hover,
.lp-nav-links a.lp-nav-link--active { color: var(--lp-fg); text-decoration: none; }
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lp-nav-form {
  margin: 0;
}
.lp-nav-button {
  background: none;
  border: none;
  cursor: pointer;
}
.lp-nav-text-link {
  font-size: 0.875rem;
  color: var(--lp-fg-3) !important;
  text-decoration: none;
}
.lp-nav-text-link:hover { color: var(--lp-fg) !important; text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hitTarget);
  height: var(--buttonH);
  gap: var(--sp4);
  background: var(--btnPrimaryBg);
  color: var(--btnPrimaryFg) !important;
  font-family: var(--f-sans);
  font-size: var(--bodyMedium);
  font-weight: 500;
  padding: 0 var(--sp8);
  border-radius: var(--r4);
  border: 1pt solid var(--btnPrimaryBg);
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--motionFast) var(--motionCurve), transform var(--motionFast) var(--motionCurve), background var(--motionFast) var(--motionCurve), border-color var(--motionFast) var(--motionCurve);
  white-space: nowrap;
}
.lp-btn-primary:hover {
  background: var(--btnPrimaryHover);
  border-color: var(--btnPrimaryHover);
  color: var(--btnPrimaryFg) !important;
  text-decoration: none;
}
.lp-btn-primary:active { transform: scale(.98); }
.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hitTarget);
  height: var(--buttonH);
  background: transparent;
  color: var(--textSecondary) !important;
  font-family: var(--f-sans);
  font-size: var(--bodyMedium);
  font-weight: 500;
  padding: 0 var(--sp8);
  border-radius: var(--r4);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motionFast) var(--motionCurve), color var(--motionFast) var(--motionCurve), transform var(--motionFast) var(--motionCurve);
  white-space: nowrap;
}
.lp-btn-ghost:hover {
  background: var(--surfaceSunken);
  color: var(--textPrimary) !important;
  text-decoration: none;
}
.lp-btn-ghost:active { transform: scale(.98); }
.lp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hitTarget);
  height: var(--buttonH);
  background: transparent;
  color: var(--textPrimary) !important;
  font-family: var(--f-sans);
  font-size: var(--bodyMedium);
  font-weight: 500;
  padding: 0 var(--sp8);
  border-radius: var(--r4);
  border: 1pt solid var(--borderStrong);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motionFast) var(--motionCurve), color var(--motionFast) var(--motionCurve), transform var(--motionFast) var(--motionCurve);
  white-space: nowrap;
}
.lp-btn-outline:hover {
  background: var(--surfaceSunken);
  color: var(--textPrimary) !important;
  text-decoration: none;
}
.lp-btn-outline:active { transform: scale(.98); }
.lp-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hitTarget);
  height: var(--buttonH);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  font-family: var(--f-sans);
  font-size: var(--bodyMedium);
  font-weight: 500;
  padding: 0 var(--sp8);
  border-radius: var(--r4);
  border: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
  transition: background var(--motionFast) var(--motionCurve), transform var(--motionFast) var(--motionCurve);
  white-space: nowrap;
}
.lp-btn-ghost-light:hover {
  background: rgba(255,255,255,.18);
  text-decoration: none;
  color: #fff;
}
.lp-btn-ghost-light:active { transform: scale(.98); }
.lp-btn-lg {
  height: 40px !important;
  min-height: 40px !important;
  font-size: var(--titleSmall) !important;
  padding: 0 var(--sp16) !important;
}
.lp-btn-block { width: 100%; justify-content: center; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.lp-section-header { text-align: center; margin-bottom: 3.5rem; }
.lp-section-header--left { text-align: left; }
.lp-section-h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--lp-fg);
  margin-bottom: .75rem;
}
.lp-section-sub {
  font-size: 1.0625rem;
  color: var(--lp-fg-3);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
.lp-section-header--left .lp-section-sub { margin: 0; }
.lp-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--lp-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  padding: 5rem 0 4rem;
  background: var(--lp-white);
  border-bottom: 1px solid var(--lp-border);
  overflow: hidden;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}
.lp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lp-hero-h1 {
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--lp-fg);
}
.lp-hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--lp-fg-3);
  max-width: 440px;
}
.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.lp-hero-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--lp-fg-4);
  flex-wrap: wrap;
}
.lp-meta-sep { color: var(--lp-border-2); }
.lp-hero-visual {
  display: flex;
  align-items: flex-start;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.lp-trust-strip {
  background: var(--lp-white);
  border-bottom: 1px solid var(--lp-border);
  padding: .875rem 0;
}
.lp-trust-inner {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--lp-fg-3);
}
.lp-trust-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--lp-fg-4);
}
.lp-trust-sep { color: var(--lp-border-2); }

/* ============================================================
   APP WINDOW COMPONENT (shared)
   ============================================================ */
.lp-app-win {
  background: var(--app-bg);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
.lp-app-win--hero    { box-shadow: 0 28px 64px rgba(40,34,22,.16), inset 0 0 0 1px rgba(255,255,255,.5); }
.lp-app-win--feature { box-shadow: 0 16px 40px rgba(40,34,22,.12); }
.lp-app-win--gallery { box-shadow: 0 8px 24px rgba(40,34,22,.09); }

/* Titlebar */
.lp-app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.lp-app-dots { display: flex; align-items: center; gap: 6px; }
.lp-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lp-dot--r { background: #FF5F57; }
.lp-dot--y { background: #FEBC2E; }
.lp-dot--g { background: #28C840; }
.lp-app-title {
  font-family: var(--f-sans);
  font-size: 11px;
  color: var(--app-muted);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-app-titlebar-spacer { width: 52px; flex-shrink: 0; }

/* Three-panel body */
.lp-app-body { display: flex; min-height: 280px; }
.lp-app-body--single { min-height: 200px; }

/* Panels */
.lp-app-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--app-border);
}
.lp-app-panel:last-child { border-right: none; }
.lp-panel--side {
  width: 160px;
  flex-shrink: 0;
  padding: 10px 0;
}
.lp-panel--main { flex: 1; min-width: 0; }
.lp-panel--preview {
  width: 130px;
  flex-shrink: 0;
  padding: 10px 8px;
  align-items: center;
}
.lp-panel--xml {
  width: 165px;
  flex-shrink: 0;
  padding: 10px 0;
}

/* Section label in app */
.lp-app-section-label {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--app-muted);
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 6px;
  margin-top: 2px;
}

/* Device items */
.lp-app-device {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
}
.lp-device--active { background: rgba(210,72,28,.10); }
.lp-device-name {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--app-text);
  line-height: 1.2;
}
.lp-device-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-muted);
  line-height: 1.2;
  margin-top: 1px;
}
.lp-app-preset {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-muted);
  padding: 3px 10px;
  line-height: 1.4;
}
.lp-preset--active { color: var(--app-text); }

/* Status Dot – updated to 8×8pt per design system */
.lp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.lp-status--success { background: var(--semanticSuccess); }
.lp-status--warning { background: var(--semanticWarn); }
.lp-status--error   { background: var(--semanticError); }
.lp-status--info    { background: var(--semanticAccent); }
.lp-status--gray    { background: var(--app-dim); }
.lp-status--green   { background: var(--semanticSuccess); }
.lp-status--blue    { background: var(--semanticAccent); }

/* Pulse animation */
.lp-pulse { animation: lp-pulse 1.2s ease-in-out infinite; }
@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Toolbar */
.lp-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.lp-toolbar-actions { display: flex; gap: 6px; }
.lp-app-run-btn {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--app-blue);
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: default;
  letter-spacing: .02em;
}
/* ToolbarButton – primary action button used in toolbars */
.lp-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--buttonH);
  min-height: var(--hitTarget);
  padding: 0 var(--sp8);
  font-family: var(--f-sans);
  font-size: var(--labelSmall);
  font-weight: 500;
  color: var(--btnPrimaryFg);
  background: var(--btnPrimaryBg);
  border: none;
  border-radius: var(--r4);
  cursor: pointer;
  transition: background var(--motionFast), opacity var(--motionFast);
}
.lp-toolbar-btn:hover {
  background: var(--btnPrimaryHover);
  opacity: 1;
}

/* Automation steps */
.lp-app-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--app-border);
  font-family: var(--f-mono);
  font-size: 11px;
}
.lp-app-step:last-of-type { border-bottom: none; }
.lp-step-icon { flex-shrink: 0; width: 14px; text-align: center; font-size: 10px; }
.lp-step-cmd  { flex-shrink: 0; color: var(--app-text); }
.lp-step-arg  { color: var(--app-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-step--done .lp-step-icon { color: var(--app-green); }
.lp-step--done .lp-step-cmd  { color: var(--app-dim); }
.lp-step--done .lp-step-arg  { opacity: .55; }
.lp-step--running { background: rgba(210,72,28,.07); }
.lp-step--running .lp-step-icon { color: var(--app-blue); }
.lp-step--running .lp-step-cmd  { color: var(--app-text); }
.lp-step--pending .lp-step-icon { color: var(--app-dim); }
.lp-step--pending .lp-step-cmd  { color: var(--app-dim); }
.lp-step--pending .lp-step-arg  { opacity: .45; }

/* Progress row */
.lp-app-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--app-border);
  margin-top: auto;
}
.lp-app-progress-track { flex: 1; height: 3px; background: var(--app-border); border-radius: 2px; overflow: hidden; }
.lp-app-progress-fill  { height: 100%; background: var(--app-blue); border-radius: 2px; }
.lp-app-progress-label { font-family: var(--f-mono); font-size: 9px; color: var(--app-muted); flex-shrink: 0; }

/* Phone preview */
.lp-phone-frame {
  width: 68px;
  height: 120px;
  background: #1B1A16;
  border: 1.5px solid var(--app-border-2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 8px;
  flex-shrink: 0;
}
.lp-phone-notch {
  width: 24px;
  height: 5px;
  background: var(--app-border-2);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}
.lp-phone-screen {
  padding: 3px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lp-ui-bar { border-radius: 2px; width: 100%; display: block; }
.lp-ui-bar--nav   { height: 7px; background: var(--app-blue); opacity: .9; }
.lp-ui-bar--hero  { height: 28px; background: #262338; }
.lp-ui-bar--text  { height: 4px; background: var(--app-dim); }
.lp-ui-bar--short { width: 60% !important; }
.lp-ui-bar--btn   { height: 7px; width: 45% !important; background: var(--app-blue); border-radius: 2px; margin: 2px 0; }
.lp-capture-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-muted);
}

/* App statusbar */
.lp-app-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  background: var(--app-panel);
  border-top: 1px solid var(--app-border);
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-muted);
  flex-shrink: 0;
}

/* XML tree */
.lp-xml-tree { padding: 0 8px; }
.lp-xml-node {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-dim);
  padding: 2px 0;
  white-space: nowrap;
}
.lp-xml-depth-0 { padding-left: 0; color: var(--app-text); }
.lp-xml-depth-1 { padding-left: 10px; }
.lp-xml-depth-2 { padding-left: 20px; }
.lp-xml-node--selected {
  color: var(--app-blue) !important;
  background: rgba(210,72,28,.10);
  padding-left: 18px !important;
  border-left: 2px solid var(--app-blue);
}
.lp-xml-attr {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-muted);
  padding: 1px 0 1px 26px;
  white-space: nowrap;
}

/* ============================================================
   FEATURES
   ============================================================ */
.lp-features { padding: 5rem 0; background: var(--lp-white); }
.lp-feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--lp-border);
}
.lp-feature-row:first-child { border-top: none; padding-top: 0; }
.lp-feature-row--alt { grid-template-columns: 7fr 5fr; }
.lp-feature-row--alt .lp-feature-copy   { order: 2; }
.lp-feature-row--alt .lp-feature-visual { order: 1; }
.lp-feature-tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--lp-blue);
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.lp-feature-h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--lp-fg);
  margin-bottom: .875rem;
}
.lp-feature-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--lp-fg-3);
  margin-bottom: 1.25rem;
}
.lp-feature-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.lp-feature-list li {
  font-size: 0.875rem;
  color: var(--lp-fg-2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.lp-feature-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--lp-border-2);
  font-size: 0.75rem;
  top: 0.1em;
}

/* Device manager feature mockup */
.lp-device-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--app-border);
}
.lp-badge {
  font-family: var(--f-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
}
.lp-badge--green { background: rgba(34,197,94,.15); color: var(--app-green); }
.lp-badge--gray  { background: rgba(113,113,122,.15); color: var(--app-muted); }
.lp-device-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-border);
}
.lp-device-card--active  { background: rgba(210,72,28,.06); }
.lp-device-card--offline { opacity: .5; }
.lp-device-card-info { flex: 1; min-width: 0; }
.lp-device-badge {
  font-family: var(--f-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--app-border);
  color: var(--app-muted);
  flex-shrink: 0;
}
.lp-connect-row {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  align-items: center;
}
.lp-adb-input {
  flex: 1;
  background: var(--app-border);
  border: 1px solid var(--app-border-2);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-muted);
  padding: 3px 7px;
  display: inline-block;
}

/* Preset editor feature mockup */
.lp-step-editor-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--app-border);
}
.lp-step-editor-row--active { background: rgba(210,72,28,.06); }
.lp-step-num {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-muted);
  width: 12px;
  flex-shrink: 0;
}
.lp-step-select-mock {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-text);
  background: var(--app-border);
  border: 1px solid var(--app-border-2);
  border-radius: 3px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.lp-step-val {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-muted);
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: 3px;
  padding: 2px 6px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Export tree feature mockup */
.lp-export-tree { padding: 8px 12px; }
.lp-tree-entry {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-muted);
  padding: 2px 0;
  white-space: nowrap;
}
.lp-tree-entry--dir { color: var(--app-text); font-weight: 500; }
.lp-tree-depth-0 { padding-left: 0; }
.lp-tree-depth-1 { padding-left: 14px; }
.lp-tree-depth-2 { padding-left: 28px; }
.lp-file-meta { color: var(--app-dim); font-size: 9px; margin-left: 6px; }
.lp-export-summary {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--app-green);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--app-border);
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.lp-workflow {
  padding: 5rem 0;
  background: var(--lp-dark);
}
.lp-workflow .lp-section-h2 { color: #F4F1E8; }
.lp-workflow .lp-section-sub { color: #A39F91; }
.lp-workflow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  margin-top: 3rem;
}
.lp-wf-step { }
.lp-wf-connector {
  display: flex;
  align-items: flex-start;
  padding-top: 17px;
  padding: 17px 1.25rem 0;
  color: #6B6962;
  font-size: 1.125rem;
}
.lp-wf-connector::after { content: '\2192'; }
.lp-wf-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--lp-blue);
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.lp-wf-title {
  font-size: 1rem;
  font-weight: 600;
  color: #E7E4DA;
  letter-spacing: 0;
  margin-bottom: .625rem;
}
.lp-wf-desc {
  font-size: 0.875rem;
  color: #A39F91;
  line-height: 1.65;
  margin-bottom: .75rem;
}
.lp-wf-cmd {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: #C6C1B1;
  background: #211F1A;
  border: 1px solid #34322B;
  padding: 5px 10px;
  border-radius: 4px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.lp-gallery {
  padding: 5rem 0;
  background: var(--lp-bg-2);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-gallery-label {
  font-size: 0.8125rem;
  color: var(--lp-fg-3);
  margin-top: .75rem;
  font-weight: 500;
}
.lp-gallery-body {
  padding: 12px;
}
.lp-gallery-body--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
}
.lp-gallery-step {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--app-dim);
  padding: 5px 8px;
  border-bottom: 1px solid var(--app-border);
}
.lp-gallery-step--done    { color: var(--app-green); opacity: .75; }
.lp-gallery-step--running { color: var(--app-blue); background: rgba(210,72,28,.05); }
.lp-export-done-check  { font-size: 1.5rem; color: var(--app-green); font-weight: 700; }
.lp-export-done-count  { font-family: var(--f-mono); font-size: 11px; color: var(--app-text); }
.lp-export-done-path   { font-family: var(--f-mono); font-size: 9px; color: var(--app-muted); }
.lp-export-done-bundles { font-family: var(--f-mono); font-size: 9px; color: var(--app-blue); }

/* ============================================================
   PRICING
   ============================================================ */
.lp-pricing { padding: 5rem 0; background: var(--lp-white); }
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--lp-border);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  overflow: hidden;
}
.lp-pricing-col {
  background: var(--lp-white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.lp-pricing-col--featured { background: var(--lp-dark); }
.lp-pricing-featured-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #E89B73;
  margin-bottom: .75rem;
}
.lp-pricing-tier {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lp-fg);
  margin-bottom: .5rem;
}
.lp-pricing-col--featured .lp-pricing-tier { color: #F4F1E8; }
.lp-pricing-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--lp-fg);
  line-height: 1;
  margin-bottom: .5rem;
}
.lp-pricing-col--featured .lp-pricing-price { color: #F4F1E8; }
.lp-price-period { font-size: 0.875rem; font-weight: 400; color: var(--lp-fg-3); letter-spacing: 0; }
.lp-pricing-col--featured .lp-price-period { color: #A39F91; }
.lp-pricing-desc {
  font-size: 0.875rem;
  color: var(--lp-fg-3);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lp-border);
}
.lp-pricing-col--featured .lp-pricing-desc { color: #A39F91; border-bottom-color: #34322B; }
.lp-pricing-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.lp-pricing-features li {
  font-size: 0.875rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.lp-pricing-features li::before { position: absolute; left: 0; font-size: 0.75rem; top: 0.1em; }
.lp-pricing-features li.yes { color: var(--lp-fg-2); }
.lp-pricing-col--featured .lp-pricing-features li.yes { color: #D8D3C4; }
.lp-pricing-features li.yes::before { content: '\2713'; color: var(--lp-green); }
.lp-pricing-features li.no  { color: var(--lp-fg-4); }
.lp-pricing-col--featured .lp-pricing-features li.no  { color: #86837A; }
.lp-pricing-features li.no::before  { content: '\2013'; color: var(--lp-border-2); }
.lp-pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--lp-fg-4);
}
/* Pro column button override */
.lp-pricing-col--featured .lp-btn-primary { background: var(--btnPrimaryFg); color: #1B1A16 !important; border-color: var(--btnPrimaryFg); }
.lp-pricing-col--featured .lp-btn-primary:hover { background: #EBE7DC; border-color: #EBE7DC; color: #1B1A16 !important; }

/* ============================================================
   FAQ
   ============================================================ */
.lp-faq {
  padding: 5rem 0;
  background: var(--lp-bg-2);
  border-top: 1px solid var(--lp-border);
}
.lp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--lp-border);
  border: 1px solid var(--lp-border);
}
.lp-faq-item { background: var(--lp-white); padding: 1.5rem; }
.lp-faq-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lp-fg);
  margin-bottom: .5rem;
  letter-spacing: 0;
}
.lp-faq-a { font-size: 0.875rem; color: var(--lp-fg-3); line-height: 1.68; }
.lp-faq-a a { color: var(--lp-blue); }

/* ============================================================
   CTA BAND
   ============================================================ */
.lp-cta-band {
  background: var(--lp-dark);
  padding: 4rem 0;
  border-top: 1px solid #34322B;
}
.lp-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.lp-cta-band-h {
  font-size: 1.625rem;
  font-weight: 600;
  color: #F4F1E8;
  letter-spacing: 0;
  margin-bottom: .375rem;
}
.lp-cta-band-sub { font-size: 0.9375rem; color: #A39F91; }
.lp-cta-band-actions { display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  background: var(--lp-dark-2);
  padding: 3rem 0 0;
  border-top: 1px solid #34322B;
}
.lp-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.lp-footer-tagline { font-size: 0.8125rem; color: #908D80; max-width: 220px; line-height: 1.5; margin-top: .5rem; }
.lp-footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.lp-footer-col { display: flex; flex-direction: column; gap: .5rem; }
.lp-footer-col-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #86837A;
  margin-bottom: .25rem;
}
.lp-footer-col a { font-size: 0.875rem; color: #A39F91; text-decoration: none; transition: color .15s; }
.lp-footer-col a:hover { color: #E7E4DA; text-decoration: none; }
.lp-footer-bottom { border-top: 1px solid #34322B; padding: 1rem 0; }
.lp-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 0.75rem;
  color: #6B6962;
  font-family: var(--f-mono);
}

/* ============================================================
   DASHBOARD / PORTAL
   ============================================================ */
.lp-main {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 56px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lp-hero { padding: 3.5rem 0 3rem; }
  .lp-hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lp-app-body { min-height: 220px; }
  .lp-panel--preview { width: 100px; }
  .lp-workflow-steps { grid-template-columns: 1fr; gap: 2rem; }
  .lp-wf-connector { display: none; }
}
@media (max-width: 768px) {
  /* Mobile nav: collapse links + account into a burger dropdown */
  .lp-nav-burger { display: inline-flex; }
  .lp-nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp8) 0;
    background: var(--lp-white);
    border-bottom: 1px solid var(--lp-border);
    box-shadow: var(--elevation2);
  }
  .lp-nav.is-open .lp-nav-collapse { display: flex; }
  .lp-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .lp-nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2rem;
  }
  .lp-nav-right {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp4);
    margin-top: var(--sp8);
    padding: var(--sp12) 2rem 0;
    border-top: 1px solid var(--lp-border);
  }
  .lp-nav-right .lp-nav-text-link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .lp-nav-right .lp-btn-primary {
    height: 44px;
    justify-content: center;
  }

  .lp-hero { padding: 2.5rem 0 2rem; }
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-visual { display: none; }

  /* Dense desktop mockups are illegible/clipped on phones — drop them */
  .lp-feature-visual { display: none; }
  .lp-feature-row { grid-template-columns: 1fr !important; gap: 2rem; padding: 2.5rem 0; }
  .lp-feature-row--alt .lp-feature-copy,
  .lp-feature-row--alt .lp-feature-visual { order: unset; }

  /* Tighter vertical rhythm so the page isn't mostly empty space */
  .lp-features,
  .lp-workflow,
  .lp-gallery,
  .lp-pricing,
  .lp-faq,
  .lp-cta-band { padding: 3rem 0; }

  .lp-gallery-grid { grid-template-columns: 1fr; }
  .lp-pricing-grid { grid-template-columns: 1fr; }
  .lp-faq-grid { grid-template-columns: 1fr; }
  .lp-cta-band-inner { flex-direction: column; align-items: flex-start; }
  .lp-footer-nav { gap: 2rem; }

  /* Comfortable tap targets */
  .lp-btn-block { height: 44px; min-height: 44px; }
  .lp-hero-actions .lp-btn-lg,
  .lp-cta-band-actions .lp-btn-lg { width: 100%; }
}
@media (max-width: 480px) {
  .lp-container { padding: 0 1rem; }
  .lp-hero-h1 { font-size: 1.75rem; }
  .lp-section-h2 { font-size: 1.375rem; }
  .lp-pricing-col { padding: 1.5rem; }
  .lp-faq-item { padding: 1.25rem; }
}

/* ============================================================
   PORTAL — dashboard redesign (new)
   Reuses landing page tokens; adds .lp-card-* / .lp-page-* /
   .lp-status-pill / .lp-storage-bar / .lp-project-list /
   .lp-screenshot-grid / .lp-download-grid / .lp-btn-sm.
   ============================================================ */

.lp-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--sp32) 0;
}

.lp-page-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--lp-fg);
  margin: 0;
}
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp16);
  margin-bottom: var(--sp24);
}
.dashboard-subtitle {
  color: var(--textSecondary);
  font-size: var(--bodyMedium);
  margin-top: var(--sp8);
}
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp8);
  flex-shrink: 0;
}
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: var(--sp8);
  margin-bottom: var(--sp16);
}
.dashboard-summary-card {
  min-height: 150px;
}
.dashboard-summary-card--wide {
  min-height: 164px;
}
.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp8);
  margin-bottom: var(--sp12);
}
.dashboard-card-header .lp-card-title {
  margin: 0;
}
.dashboard-metric {
  color: var(--textPrimary);
  font-size: var(--displayMedium);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--sp8);
}
.dashboard-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp8);
  color: var(--textSecondary);
  font-size: var(--bodyMedium);
}

/* Card component – uses surfaceRaised background and elevation */
.lp-card {
  background: var(--surfaceRaised);
  border: 1pt solid var(--borderHairline);
  border-radius: var(--r10);
  box-shadow: var(--elevation1);
  padding: var(--sp12);
  margin-bottom: var(--sp8);
}

.lp-card-title {
  color: var(--textPrimary);
  font-size: var(--titleSmall);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 var(--sp12);
}

.lp-card-body {
  color: var(--textPrimary);
  font-size: var(--bodyMedium);
  line-height: 1.5;
}

.lp-card-main,
.lp-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lp-card-count {
  color: var(--lp-fg-3);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 0.25rem;
}
.lp-plan-name {
  margin-left: var(--sp8);
}
.lp-card-actions--spaced {
  margin-top: var(--sp12);
}
.account-card {
  max-width: 480px;
}

.lp-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp4);
  font-size: var(--labelSmall);
  font-weight: 500;
  letter-spacing: .01em;
  padding: var(--sp4) var(--sp8);
  border-radius: var(--pill);
  white-space: nowrap;
}
.lp-status-pill--active {
  background: var(--semanticSuccessDim);
  color: var(--semanticSuccess);
}
.lp-status-pill--on_trial {
  background: var(--semanticAccentDim);
  color: var(--semanticAccent);
}
.lp-status-pill--cancelled {
  background: var(--semanticErrorDim);
  color: var(--semanticError);
}
.lp-status-pill--expired {
  background: var(--surfaceSunken);
  color: var(--textMuted);
}
.lp-status-pill--paused {
  background: var(--semanticWarnDim);
  color: var(--semanticWarn);
}
.lp-status-pill--none {
  background: var(--surfaceSunken);
  color: var(--textMuted);
}

.lp-empty {
  color: var(--textMuted);
  font-size: var(--bodyMedium);
  margin: 0;
}

.lp-empty-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lp-empty-state__inner {
  display: flex;
  max-width: 400px;
  flex-direction: column;
  align-items: center;
}
.lp-empty-state__icon {
  width: var(--iconXl);
  height: var(--iconXl);
  margin-bottom: var(--sp16);
  color: var(--textMuted);
}
.lp-empty-state__title {
  color: var(--textSecondary);
  font-size: var(--titleMedium);
  font-weight: 600;
  margin-bottom: var(--sp8);
}
.lp-empty-state__description {
  color: var(--textMuted);
  font-size: var(--bodyMedium);
}

.lp-storage-bar {
  position: relative;
  height: var(--sp8);
  width: 100%;
  background: var(--lp-border-2);
  border-radius: var(--pill);
  overflow: hidden;
  margin: var(--sp8) 0;
}
.lp-storage-bar__fill {
  display: block;
  height: 100%;
  background: var(--lp-fg);
  transition: width var(--motionSlow) var(--motionCurve);
}
.lp-storage-bar--warn .lp-storage-bar__fill {
  background: var(--app-amber);
}
.lp-card-meta {
  color: var(--lp-fg-3);
  font-size: 0.8125rem;
  margin: 0;
}

.lp-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-project-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lp-border);
}
.lp-project-row:last-child {
  border-bottom: none;
}
.lp-project-row-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-project-name {
  font-weight: 500;
  color: var(--lp-fg);
}
.lp-project-meta {
  color: var(--lp-fg-3);
  font-size: 0.8125rem;
  margin-top: 0.125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lp-badge-archived {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: var(--lp-bg-2);
  color: var(--lp-fg-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.lp-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .lp-screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .lp-screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lp-screenshot-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--lp-bg-2);
  text-decoration: none;
  color: inherit;
}
.lp-screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-screenshot-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-fg-3);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}
.lp-screenshot-thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.375rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 0.6875rem;
  display: flex;
  justify-content: space-between;
  gap: 0.375rem;
  opacity: 0;
  transition: opacity var(--motionFast) var(--motionCurve);
}
.lp-screenshot-thumb:hover .lp-screenshot-thumb-caption {
  opacity: 1;
}
.lp-screenshot-thumb:hover img {
  opacity: 0.85;
}

.lp-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.lp-download-item {
  border: 1px solid var(--lp-border);
  border-radius: var(--r);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.lp-download-item:hover {
  border-color: var(--lp-fg);
}
.lp-platform-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.lp-platform-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lp-fg);
}
.lp-version-tag {
  font-size: 0.75rem;
  color: var(--lp-fg-3);
  font-family: var(--f-mono);
}

.lp-btn-sm {
  height: var(--buttonH);
  padding: 0 var(--sp8);
  font-size: var(--bodySmall);
}

.lp-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Lightbox overlay ───────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-overlay[hidden] {
  display: none;
}
.lb-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
  user-select: none;
}
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--motionFast) var(--motionCurve);
  line-height: 1;
}
.lb-close:hover {
  opacity: 1;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--motionFast) var(--motionCurve);
  line-height: 1;
  padding: 0.5rem;
}
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}
.lb-prev {
  left: 1rem;
}
.lb-next {
  right: 1rem;
}

/* ── Per-project card (replaces wrapper card) ───────────────────────── */
.lp-project-card {
  padding: var(--sp16);
  border-left: 3px solid var(--borderStrong);
}
.lp-project-card-header {
  margin-bottom: 1.25rem;
}

@media (max-width: 820px) {
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PORTAL DESKTOP SHELL
   Mirrors the desktop app handoff: compact chrome, rail, workspace,
   inspector, hairline borders, and dense operational data.
   ============================================================ */

.portal-desktop-body {
  --sp2: 2px;
  --sp4: 4px;
  --sp8: 8px;
  --sp12: 12px;
  --sp16: 16px;
  --sp24: 24px;
  --sp32: 32px;
  --sp48: 48px;
  --r2: 2px;
  --r4: 4px;
  --r6: 6px;
  --r10: 10px;
  --pill: 999px;
  --buttonH: 28px;
  --inputH: 28px;
  --titleBarH: 48px;
  --sectionHeaderH: 32px;
  --toolbarH: 32px;
  --sidebarW: 200px;
  --inspectorW: 268px;
  --iconXs: 12px;
  --iconSm: 14px;
  --iconMd: 16px;
  --iconLg: 20px;
  --iconXl: 28px;
  --surfaceCanvas: #E6E2D6;
  --surfacePanel: #EFECE3;
  --surfaceRaised: #FAF8F2;
  --surfaceSunken: #EDEAE0;
  --surfaceFloat: #FAF8F2;
  --textPrimary: #20201C;
  --textSecondary: #514F47;
  --textMuted: #736F63;
  --textDisabled: #BDB8A6;
  --borderHairline: #D3CDBD;
  --borderStrong: #C6C1B1;
  --semanticAccent: #D2481C;
  --semanticAccentDim: rgba(210,72,28,.10);
  --semanticSuccess: #3F7A4E;
  --semanticSuccessDim: rgba(63,122,78,.13);
  --semanticWarn: #B06A14;
  --semanticWarnDim: rgba(176,106,20,.13);
  --semanticError: #A8392A;
  --semanticErrorDim: rgba(168,57,42,.12);
  --fontInter: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fontMono: "Space Mono", "IBM Plex Mono", "Consolas", monospace;
  --bodyMedium: 13px;
  --bodySmall: 12px;
  --labelSmall: 11px;
  --titleSmall: 13px;
  --titleMedium: 15px;
  --displayMedium: 22px;
  --elevation1: none;
  --elevation4: 0 16px 40px rgba(40,34,22,.13);
  background: var(--surfaceCanvas);
  color: var(--textPrimary);
  font: 400 13px/1.45 var(--fontInter);
  overflow: hidden;
}

.portal-desktop-body .btn,
.portal-desktop-body .lp-btn-primary,
.portal-desktop-body .lp-btn-ghost {
  height: var(--buttonH);
  min-height: var(--buttonH);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp4);
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r4);
  font: 500 12px/1 var(--fontInter);
  letter-spacing: .1px;
  text-decoration: none;
  cursor: pointer;
}

.portal-desktop-body .btn-primary,
.portal-desktop-body .lp-btn-primary {
  color: var(--btnPrimaryFg);
  background: var(--btnPrimaryBg);
}

.portal-desktop-body .btn-primary:hover,
.portal-desktop-body .lp-btn-primary:hover {
  background: var(--btnPrimaryHover);
  color: var(--btnPrimaryFg);
  text-decoration: none;
  filter: none;
}

.portal-desktop-body .btn-outline,
.portal-desktop-body .lp-btn-ghost {
  color: var(--textPrimary);
  background: transparent;
  border-color: var(--borderStrong);
}

.portal-desktop-body .btn-outline:hover,
.portal-desktop-body .lp-btn-ghost:hover {
  background: var(--surfaceSunken);
  color: var(--textPrimary);
  text-decoration: none;
}

.portal-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebarW) minmax(0, 1fr) var(--inspectorW);
  grid-template-rows: var(--titleBarH) minmax(0, 1fr);
  background: var(--surfaceCanvas);
}

.portal-topbar {
  grid-column: 1 / -1;
  height: var(--titleBarH);
  display: flex;
  align-items: center;
  gap: var(--sp8);
  padding: 0 var(--sp12);
  background: var(--surfacePanel);
  border-bottom: 1px solid var(--borderHairline);
}

.portal-brand {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: var(--sp8);
  color: var(--textPrimary) !important;
  font: 600 13px/1.25 var(--fontInter);
  text-decoration: none;
}

.portal-brand:hover {
  color: var(--textPrimary) !important;
  text-decoration: none;
}

.portal-brand-mark {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 24px;
  border-radius: var(--r4);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.portal-topbar-divider,
.toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--borderHairline);
}

.portal-topbar-title {
  color: var(--textSecondary);
  font: 500 12px/1 var(--fontInter);
}

.portal-topbar-spacer {
  flex: 1 1 auto;
}

.portal-user {
  max-width: 240px;
}

.portal-inline-form {
  margin: 0;
}

.portal-sidebar {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: var(--sp8);
  background: var(--surfacePanel);
  border-right: 1px solid var(--borderHairline);
}

.portal-nav-item {
  height: 32px;
  display: flex;
  align-items: center;
  gap: var(--sp8);
  padding: 0 var(--sp8);
  border-radius: var(--r4);
  color: var(--textSecondary) !important;
  font: 500 12px/1 var(--fontInter);
  text-decoration: none;
}

.portal-nav-item:hover {
  background: var(--surfaceSunken);
  color: var(--textPrimary) !important;
  text-decoration: none;
}

.portal-nav-item.is-active {
  background: var(--semanticAccentDim);
  color: var(--semanticAccent) !important;
}

.portal-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.portal-nav-icon svg {
  width: 18px;
  height: 18px;
}

.portal-workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.portal-section {
  width: 100%;
}

.section {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surfaceCanvas);
}

.section-header {
  height: var(--sectionHeaderH);
  flex: 0 0 var(--sectionHeaderH);
  display: flex;
  align-items: center;
  gap: var(--sp8);
  padding: 0 var(--sp12);
  background: var(--surfacePanel);
  border-bottom: 1px solid var(--borderHairline);
}

.section-title {
  min-width: 0;
  margin: 0;
  color: var(--textPrimary);
  font: 600 13px/1.25 var(--fontInter);
}

.section-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp4);
}

.section-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: var(--surfaceCanvas);
}

.portal-section-subtitle {
  min-width: 0;
  overflow: hidden;
  color: var(--textMuted);
  font: 400 12px/1.25 var(--fontInter);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-message-strip {
  padding: var(--sp8) var(--sp12) 0;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 12px 10px;
  background: var(--surfaceSunken);
  border-bottom: 1px solid var(--borderHairline);
}

.metric-card {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 260px;
  padding: var(--sp12);
  border: 1px solid var(--borderHairline);
  border-radius: var(--r6);
  background: var(--surfaceRaised);
}

.metric-label {
  color: var(--textMuted);
  font: 500 11px/1.25 var(--fontInter);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.metric-value {
  margin-top: var(--sp4);
  color: var(--textPrimary);
  font: 600 20px/1.2 var(--fontInter);
}

.metric-hint {
  margin-top: 2px;
  overflow: hidden;
  color: var(--textSecondary);
  font: 400 12px/1.35 var(--fontInter);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp4);
  padding: var(--sp4) var(--sp8);
  border-radius: var(--pill);
  color: var(--textSecondary);
  background: var(--surfaceRaised);
  font: 500 11px/1 var(--fontInter);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  display: none;
  border-radius: 50%;
  background: currentColor;
}

.chip.with-dot::before {
  display: block;
}

.chip-success {
  color: var(--semanticSuccess);
  background: var(--semanticSuccessDim);
}

.chip-warn {
  color: var(--semanticWarn);
  background: var(--semanticWarnDim);
}

.chip-error {
  color: var(--semanticError);
  background: var(--semanticErrorDim);
}

.mono-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 4px;
  overflow: hidden;
  border-radius: var(--r2);
  color: var(--semanticAccent);
  background: var(--surfaceSunken);
  font: 400 11px/1.5 var(--fontMono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar {
  height: var(--toolbarH);
  display: flex;
  align-items: center;
  gap: var(--sp4);
  padding: 0 var(--sp8);
}

.portal-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surfaceCanvas);
  border-bottom: 1px solid var(--borderHairline);
}

.portal-toolbar-label {
  color: var(--textSecondary);
  font: 500 11px/1.25 var(--fontInter);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.portal-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: start;
  gap: var(--sp8);
  padding: var(--sp8);
}

.portal-project-row,
.portal-desktop-body .lp-project-card {
  display: grid;
  gap: var(--sp12);
  padding: var(--sp12);
  border: 1px solid var(--borderHairline);
  border-radius: var(--r6);
  background: var(--surfaceRaised);
}

.portal-project-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp12);
}

.portal-project-heading {
  min-width: 0;
}

.portal-project-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp8);
  color: var(--textPrimary);
  font: 600 13px/1.25 var(--fontInter);
}

.portal-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp8);
  margin-top: var(--sp4);
  color: var(--textSecondary);
  font: 400 12px/1.35 var(--fontInter);
}

.portal-project-description {
  max-width: 720px;
  margin-top: var(--sp8);
  overflow: hidden;
  color: var(--textMuted);
  font: 400 12px/1.4 var(--fontInter);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-screenshot-strip,
.portal-desktop-body .lp-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--sp8);
}

.portal-screenshot-thumb,
.portal-desktop-body .lp-screenshot-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--borderHairline);
  border-radius: var(--r4);
  color: var(--textMuted);
  background: var(--surfaceSunken);
  cursor: pointer;
}

button.portal-screenshot-thumb {
  padding: 0;
}

.portal-screenshot-thumb:hover,
.portal-desktop-body .lp-screenshot-thumb:hover {
  border-color: var(--borderStrong);
}

.portal-screenshot-thumb img,
.portal-desktop-body .lp-screenshot-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portal-screenshot-thumb .mono-chip,
.portal-desktop-body .lp-screenshot-thumb .mono-chip {
  position: absolute;
  left: var(--sp4);
  right: var(--sp4);
  bottom: var(--sp4);
}

.portal-screenshot-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp8);
  text-align: center;
  font: 400 12px/1.35 var(--fontInter);
}

.portal-empty-state {
  min-height: 320px;
}

.portal-download-section {
  margin: var(--sp8);
  overflow: hidden;
  border: 1px solid var(--borderHairline);
  border-radius: var(--r6);
  background: var(--surfaceRaised);
}

.portal-download-body {
  padding: var(--sp12);
}

.portal-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp8);
}

.portal-download-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp12);
  padding: var(--sp12);
  border: 1px solid var(--borderHairline);
  border-radius: var(--r6);
  background: var(--surfaceCanvas);
}

.portal-download-platform {
  margin-bottom: var(--sp4);
  color: var(--textPrimary);
  font: 600 13px/1.25 var(--fontInter);
}

.portal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp8);
  margin-top: var(--sp12);
}

.portal-inspector {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  overflow: auto;
  padding: var(--sp8);
  border-left: 1px solid var(--borderHairline);
  background: var(--surfacePanel);
}

.inspector-group {
  margin: 0 0 var(--sp8);
  overflow: hidden;
  border: 1px solid var(--borderHairline);
  border-radius: var(--r6);
  background: var(--surfaceRaised);
}

.inspector-group-header {
  padding: var(--sp8) var(--sp12);
  color: var(--textPrimary);
  font: 600 13px/1.25 var(--fontInter);
  border-bottom: 1px solid var(--borderHairline);
}

.inspector-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--sp8);
  padding: var(--sp4) var(--sp12);
  color: var(--textPrimary);
  font: 400 12px/1.45 var(--fontInter);
}

.inspector-label {
  color: var(--textMuted);
  font: 500 11px/1.25 var(--fontInter);
}

.portal-inspector-actions {
  padding: var(--sp12);
  border-top: 1px solid var(--borderHairline);
}

.portal-storage-meter {
  height: 8px;
  margin: var(--sp12);
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--surfaceSunken);
}

.portal-storage-meter span {
  display: block;
  height: 100%;
  background: var(--semanticAccent);
}

.portal-storage-meter.is-warn span {
  background: var(--semanticWarn);
}

@media (max-width: 1100px) {
  .portal-shell {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .portal-sidebar {
    padding: var(--sp8) var(--sp4);
  }

  .portal-nav-item {
    justify-content: center;
    padding: 0;
  }

  .portal-nav-item span:last-child {
    display: none;
  }

  .portal-inspector {
    display: none;
  }
}

@media (max-width: 760px) {
  .portal-desktop-body {
    overflow: auto;
  }

  .portal-shell {
    min-height: 100vh;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: var(--titleBarH) auto minmax(0, 1fr);
  }

  .portal-topbar {
    overflow-x: auto;
  }

  .portal-sidebar {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: var(--sp4);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--borderHairline);
  }

  .portal-nav-item {
    width: auto;
    min-width: 44px;
  }

  .portal-workspace {
    grid-column: 1;
    grid-row: 3;
  }

  .portal-section-subtitle,
  .portal-user {
    display: none;
  }

  .metric-card {
    width: min(100%, 168px);
    flex: 1 1 150px;
  }

  .portal-project-main,
  .portal-download-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dialog {
  width: min(480px, calc(100vw - 32px));
  border: 1px solid var(--borderStrong);
  border-radius: var(--r10);
  background: var(--surfaceRaised);
  box-shadow: var(--elevation4);
}

.dialog-header {
  padding: var(--sp16) var(--sp16) 0;
}

.dialog-title {
  color: var(--textPrimary);
  font: 600 15px/1.25 var(--fontInter);
}

.dialog-body {
  padding: var(--sp24) var(--sp24) 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp8);
  padding: var(--sp8) var(--sp16) var(--sp16);
}

.portal-account-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp24);
}

.portal-account-panel .form-group {
  margin-bottom: var(--sp12);
}

.portal-desktop-body .form-group label,
.portal-auth-body .form-group label {
  color: var(--textSecondary);
  font: 500 11px/1.25 var(--fontInter);
  margin-bottom: var(--sp4);
}

.portal-desktop-body .form-group input,
.portal-desktop-body .form-group select,
.portal-desktop-body .form-group textarea,
.portal-auth-body .form-group input,
.portal-auth-body .form-group select,
.portal-auth-body .form-group textarea {
  min-height: var(--inputH, 28px);
  padding: 0 var(--sp8);
  border: 1px solid var(--borderHairline);
  border-radius: var(--r4);
  color: var(--textPrimary);
  background: var(--surfaceSunken);
  font: 400 13px/1.45 var(--fontInter);
}

.portal-desktop-body .form-group textarea,
.portal-auth-body .form-group textarea {
  min-height: 72px;
  padding-top: var(--sp8);
}

.portal-auth-body {
  --sp2: 2px;
  --sp4: 4px;
  --sp8: 8px;
  --sp12: 12px;
  --sp16: 16px;
  --sp24: 24px;
  --sp32: 32px;
  --r2: 2px;
  --r4: 4px;
  --r6: 6px;
  --r10: 10px;
  --buttonH: 28px;
  --inputH: 28px;
  --surfaceCanvas: #E6E2D6;
  --surfacePanel: #EFECE3;
  --surfaceRaised: #FAF8F2;
  --surfaceSunken: #EDEAE0;
  --textPrimary: #20201C;
  --textSecondary: #514F47;
  --textMuted: #736F63;
  --borderHairline: #D3CDBD;
  --borderStrong: #C6C1B1;
  --semanticAccent: #D2481C;
  --semanticAccentDim: rgba(210,72,28,.10);
  --semanticSuccess: #3F7A4E;
  --semanticSuccessDim: rgba(63,122,78,.13);
  --semanticWarn: #B06A14;
  --semanticWarnDim: rgba(176,106,20,.13);
  --semanticError: #A8392A;
  --semanticErrorDim: rgba(168,57,42,.12);
  --fontInter: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fontMono: "Space Mono", "IBM Plex Mono", "Consolas", monospace;
  background: var(--surfaceCanvas);
  color: var(--textPrimary);
  font: 400 13px/1.45 var(--fontInter);
}

.portal-auth-body .auth-wrapper {
  min-height: 100vh;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(320px, 416px);
  align-items: center;
  justify-content: center;
  gap: var(--sp16);
  padding: var(--sp24);
  background: var(--surfaceCanvas);
}

.portal-auth-body .auth-side-panel,
.portal-auth-body .auth-card {
  border-radius: var(--r6);
  border: 1px solid var(--borderHairline);
  background: var(--surfacePanel);
  box-shadow: none;
}

.portal-auth-body .auth-side-panel {
  max-width: 400px;
  padding: var(--sp16);
}

.portal-auth-body .auth-card {
  max-width: 416px;
  padding: var(--sp16);
}

.portal-auth-body .auth-brand {
  margin-bottom: var(--sp16);
}

.portal-auth-body .auth-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r4);
}

.portal-auth-body .auth-side-panel h1 {
  color: var(--textPrimary);
  font: 600 20px/1.25 var(--fontInter);
  margin-bottom: var(--sp8);
}

.portal-auth-body .auth-side-panel p,
.portal-auth-body .auth-feature-row,
.portal-auth-body .auth-footer {
  color: var(--textSecondary);
  font: 400 13px/1.45 var(--fontInter);
}

.portal-auth-body .auth-card-kicker,
.portal-auth-body .auth-brand-kicker {
  color: var(--semanticAccent);
  font: 500 11px/1.25 var(--fontMono);
  letter-spacing: .01px;
}

.portal-auth-body .auth-title {
  color: var(--textPrimary);
  font: 600 15px/1.25 var(--fontInter);
  margin-bottom: var(--sp16);
}

.portal-auth-body .auth-divider {
  color: var(--textMuted);
  font: 500 11px/1.25 var(--fontInter);
  letter-spacing: .01px;
}

.portal-auth-body .btn,
.portal-auth-body .btn-primary,
.portal-auth-body .btn-secondary,
.portal-auth-body .btn-social {
  height: var(--buttonH);
  min-height: var(--buttonH);
  border-radius: var(--r4);
  font: 500 12px/1 var(--fontInter);
}

.portal-auth-body .btn-primary {
  color: var(--btnPrimaryFg);
  background: var(--btnPrimaryBg);
}

.portal-auth-body .btn-secondary,
.portal-auth-body .btn-social {
  color: var(--textPrimary);
  background: transparent;
  border: 1px solid var(--borderStrong);
}

.portal-auth-body .password-toggle {
  width: var(--buttonH);
  height: var(--buttonH);
}

@media (max-width: 760px) {
  .portal-auth-body .auth-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   PORTAL — Storeframe v3 redesign (web-scoped)
   A centered content page under the shared top navbar — no app
   rail or inspector. Keeps the v3 visual language: mono eyebrows,
   featured "continue" card, accent-bar project cards, status
   pills, summary strip.
   Prefix: pd- (portal dashboard). Reuses .lp-nav, :root tokens,
   .lp-btn-*, .mono-chip, .lp-status-pill, .lp-screenshot-grid /
   .lb-thumb and the lightbox.
   ============================================================ */

/* ── Legal / policy documents ───────────────────────────────── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--textSecondary);
}
.legal-doc .pd-eyebrow { margin-bottom: 4px; }
.legal-doc h1 {
  margin: 0 0 6px;
  color: var(--textPrimary);
  font: 600 clamp(1.5rem, 2.5vw, 1.875rem)/1.15 var(--fontInter);
  letter-spacing: -.01em;
}
.legal-updated {
  margin-bottom: var(--sp32);
  color: var(--textMuted);
  font: 400 11px/1.3 var(--fontMono);
  letter-spacing: .04em;
}
.legal-doc h2 {
  margin: var(--sp32) 0 var(--sp8);
  color: var(--textPrimary);
  font: 600 1.125rem/1.3 var(--fontInter);
}
.legal-doc p,
.legal-doc li {
  font: 400 0.95rem/1.7 var(--fontInter);
  color: var(--textSecondary);
}
.legal-doc p { margin: 0 0 var(--sp12); }
.legal-doc ul { margin: 0 0 var(--sp12); padding-left: 1.25rem; }
.legal-doc li { margin-bottom: var(--sp4); }
.legal-doc a { color: var(--semanticAccent); }
.legal-doc strong { color: var(--textPrimary); font-weight: 600; }
.legal-note {
  margin-top: var(--sp32);
  padding: var(--sp16);
  background: var(--surfaceRaised);
  border: 1px solid var(--borderHairline);
  border-left: 3px solid var(--semanticAccent);
  border-radius: 13px;
  font: 400 0.85rem/1.6 var(--fontInter);
  color: var(--textMuted);
}

/* ── Footer legal links row ─────────────────────────────────── */
.lp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp16);
}
.lp-footer-legal a { font-size: 0.75rem; color: #908D80; }
.lp-footer-legal a:hover { color: #E7E4DA; text-decoration: none; }

.pd-page {
  max-width: 1040px;
  margin: 0 auto;
}

/* ── Page header ────────────────────────────────────────────── */
.pd-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp16);
  margin-bottom: var(--sp24);
}
.pd-eyebrow {
  color: #A39F91;
  font: 400 11px/1.2 var(--fontMono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pd-title {
  margin: 4px 0 0;
  color: var(--textPrimary);
  font: 600 clamp(1.5rem, 2.5vw, 1.875rem)/1.15 var(--fontInter);
  letter-spacing: -.01em;
}
.pd-page-actions {
  display: flex;
  align-items: center;
  gap: var(--sp8);
  flex-shrink: 0;
}

/* ── Summary strip (Plan · Storage · Projects) ──────────────── */
.pd-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp12);
  margin-bottom: var(--sp24);
}
.pd-stat {
  padding: var(--sp16);
  background: var(--surfaceRaised);
  border: 1px solid var(--borderHairline);
  border-radius: 13px;
}
.pd-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp8);
  color: #908D80;
  font: 400 10px/1.2 var(--fontMono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pd-stat-value {
  margin-top: 10px;
  color: var(--textPrimary);
  font: 600 22px/1.15 var(--fontInter);
}
.pd-stat-hint {
  margin-top: 4px;
  color: var(--textMuted);
  font: 400 12px/1.4 var(--fontInter);
}
.pd-stat .lp-storage-bar { margin: 10px 0 0; background: var(--surfaceSunken); }
.pd-stat .lp-storage-bar__fill { background: var(--semanticAccent); min-width: 2px; }

/* ── Limited / locked banner ────────────────────────────────── */
.pd-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 22px;
  background: var(--surfaceRaised);
  border: 1px solid #E3B896;
  border-radius: 13px;
}
.pd-banner-tag {
  flex: none;
  padding: 3px 9px;
  color: var(--semanticAccent);
  border: 1px solid var(--semanticAccent);
  border-radius: 7px;
  font: 700 11px/1.3 var(--fontMono);
  letter-spacing: .06em;
}
.pd-banner-body { flex: 1; min-width: 0; }
.pd-banner-title { font: 600 13px/1.3 var(--fontInter); }
.pd-banner-sub { margin-top: 1px; color: var(--textMuted); font: 400 12px/1.4 var(--fontInter); }

/* ── Section divider ────────────────────────────────────────── */
.pd-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.pd-divider:not(:first-child) { margin-top: 32px; }
.pd-divider-label {
  color: #908D80;
  font: 400 11px/1.2 var(--fontMono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pd-divider-count { color: var(--textDisabled); font: 400 11px/1.2 var(--fontMono); }
.pd-divider-line { flex: 1; height: 1px; background: var(--borderHairline); }
.pd-divider-actions { display: flex; align-items: center; gap: var(--sp8); }

/* ── Featured "continue where you left off" card ────────────── */
.pd-featured {
  display: flex;
  margin-bottom: 0;
  background: var(--surfaceRaised);
  border: 1px solid var(--textPrimary);
  border-left: 3px solid var(--semanticAccent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(40,34,22,.06);
}
.pd-featured-preview {
  width: 230px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 26px 0;
  background: var(--surfaceSunken);
  border-right: 1px solid var(--textPrimary);
}
.pd-phone {
  width: 110px;
  height: 196px;
  background: #fff;
  border: 1px solid var(--textPrimary);
  border-radius: 16px;
  overflow: hidden;
}
.pd-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-phone-empty {
  width: 94px;
  height: 188px;
  background: repeating-linear-gradient(135deg,#ECEAE2,#ECEAE2 6px,#E2DFD4 6px,#E2DFD4 12px);
  border: 1px solid var(--borderHairline);
  border-radius: 16px;
}
.pd-featured-cap {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  text-align: center;
  color: #A39F91;
  font: 400 9.5px/1.2 var(--fontMono);
}
.pd-featured-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
}
.pd-featured-name {
  margin: 6px 0 0;
  color: var(--textPrimary);
  font: 600 26px/1.1 var(--fontInter);
  letter-spacing: -.02em;
}
.pd-featured-path { margin-top: 5px; color: #A39F91; font: 400 11.5px/1.3 var(--fontMono); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pd-chip {
  padding: 4px 9px;
  color: var(--textSecondary);
  background: var(--surfaceSunken);
  border: 1px solid var(--borderHairline);
  border-radius: 7px;
  font: 700 10px/1.3 var(--fontMono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pd-featured-spacer { flex: 1; min-height: 14px; }
.pd-stats { color: var(--textMuted); font: 400 11.5px/1.4 var(--fontMono); }
.pd-featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── Project cards ──────────────────────────────────────────── */
.pd-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-card {
  display: flex;
  background: var(--surfaceRaised);
  border: 1px solid var(--borderHairline);
  border-left: 3px solid var(--semanticAccent);
  border-radius: 13px;
  overflow: hidden;
}
.pd-card-bar {
  width: 34px;
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  background: var(--surfaceSunken);
  border-right: 1px solid var(--borderHairline);
}
.pd-card-bar span {
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: var(--semanticAccent);
}
.pd-card-body {
  flex: 1;
  min-width: 0;
  padding: 15px 17px;
}
.pd-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp12);
}
.pd-card-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp8);
  color: var(--textPrimary);
  font: 600 15px/1.25 var(--fontInter);
}
.pd-badge-archived {
  padding: 2px 8px;
  color: var(--textMuted);
  background: var(--surfaceSunken);
  border: 1px solid var(--borderHairline);
  border-radius: 6px;
  font: 700 9.5px/1.4 var(--fontMono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pd-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp12);
  margin-top: 6px;
  color: var(--textMuted);
  font: 400 11.5px/1.4 var(--fontMono);
}
.pd-card-desc {
  margin-top: 8px;
  color: var(--textSecondary);
  font: 400 12.5px/1.45 var(--fontInter);
}
.pd-card-shots { margin-top: 14px; }
.pd-card-shots.lp-screenshot-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: var(--sp8);
}
.pd-card-shots .lp-screenshot-thumb {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  border: 1px solid var(--borderHairline);
  background: var(--surfaceSunken);
}
.pd-card-shots .lp-screenshot-thumb .mono-chip {
  position: absolute;
  left: var(--sp4);
  right: var(--sp4);
  bottom: var(--sp4);
}
.pd-card-shots .portal-screenshot-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp8);
  text-align: center;
  color: var(--textMuted);
  font: 400 11px/1.35 var(--fontInter);
}
.pd-empty-shots {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  color: var(--textMuted);
  background: var(--surfaceCanvas);
  border: 1px dashed var(--borderStrong);
  border-radius: 9px;
  font: 400 12px/1.4 var(--fontInter);
}

/* ── Empty state ────────────────────────────────────────────── */
.pd-empty {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surfaceRaised);
  border: 1px dashed var(--borderStrong);
  border-radius: 16px;
}
.pd-empty-inner { max-width: 360px; }
.pd-empty-icon { color: var(--textMuted); }
.pd-empty-icon svg { width: 28px; height: 28px; }
.pd-empty-title { margin-top: 14px; color: var(--textSecondary); font: 600 15px/1.3 var(--fontInter); }
.pd-empty-desc { margin-top: 6px; color: var(--textMuted); font: 400 12.5px/1.45 var(--fontInter); }

/* ── Downloads ──────────────────────────────────────────────── */
.pd-downloads {
  margin-top: 32px;
  background: var(--surfaceRaised);
  border: 1px solid var(--textPrimary);
  border-radius: 14px;
  padding: 16px 18px;
}
.pd-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.pd-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp12);
  padding: 13px 15px;
  background: var(--surfaceCanvas);
  border: 1px solid var(--borderHairline);
  border-radius: 11px;
}
.pd-download-platform { color: var(--textPrimary); font: 600 13px/1.25 var(--fontInter); margin-bottom: 4px; }

/* ── Settings / account page ────────────────────────────────── */
.pd-settings { max-width: 600px; }
.pd-id-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surfaceRaised);
  border: 1px solid var(--textPrimary);
  border-radius: 14px;
}
.pd-id-avatar {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #34322B;
  color: #fff;
  border-radius: 13px;
  font: 700 15px/1 var(--fontMono);
}
.pd-id-main { flex: 1; min-width: 0; }
.pd-id-name { font: 600 15px/1.25 var(--fontInter); }
.pd-id-mail { color: #A39F91; font: 400 11.5px/1.3 var(--fontMono); margin-top: 1px; }
.pd-panel {
  background: var(--surfaceRaised);
  border: 1px solid var(--borderHairline);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pd-panel-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--borderHairline);
  color: #908D80;
  font: 400 10px/1.2 var(--fontMono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pd-panel-body { padding: 18px; }
.pd-about-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--surfaceSunken);
  font: 400 12.5px/1.4 var(--fontInter);
  color: var(--textSecondary);
}
.pd-about-row:last-child { border-bottom: none; }
.pd-about-row .mono-chip { background: transparent; padding: 0; }

@media (max-width: 820px) {
  .pd-summary { grid-template-columns: 1fr; }
  .pd-page-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pd-featured { flex-direction: column; }
  .pd-featured-preview { width: auto; border-right: none; border-bottom: 1px solid var(--textPrimary); }
  .pd-divider-actions { margin-left: auto; }
}
